:root {
	--df-yellow: #ffd331;
	--df-gold: #d9a21b;
	--df-gold-light: #ffec9f;
	--df-gold-deep: #754800;
	--df-black: #050300;
	--df-panel: #100a01;
}

.df-site-header,
.df-site-header * {
	box-sizing: border-box;
}

.df-site-header {
	position: relative;
	z-index: 999;
	background: var(--df-black);
	color: #fff;
	font-family: "Sarabun", "Leelawadee UI", Tahoma, sans-serif;
	border-top: 3px solid var(--df-yellow);
	box-shadow: 0 12px 34px rgba(0, 0, 0, .52), 0 5px 20px rgba(217, 162, 27, .08);
}

.df-header-top {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(112deg, rgba(255, 211, 49, .22) 0%, rgba(217, 162, 27, .07) 28%, transparent 28.2%),
		repeating-linear-gradient(135deg, transparent 0 44px, rgba(255, 211, 49, .035) 44px 45px),
		linear-gradient(90deg, #160e01 0%, #050505 52%, #130c01 100%);
}

.df-header-top::before,
.df-header-top::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

.df-header-top::before {
	top: 0;
	right: clamp(3%, 8vw, 11%);
	width: clamp(120px, 18vw, 260px);
	height: 4px;
	background: linear-gradient(90deg, transparent, var(--df-yellow), transparent);
	box-shadow: 0 0 22px rgba(255, 211, 49, .48);
}

.df-header-top::after {
	right: -58px;
	bottom: -72px;
	width: 270px;
	height: 150px;
	border: 1px solid rgba(255, 211, 49, .22);
	transform: rotate(-24deg);
	background: linear-gradient(135deg, rgba(255, 211, 49, .09), transparent 55%);
}

.df-header-inner,
.df-nav-inner {
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
}

.df-header-inner {
	position: relative;
	z-index: 1;
	min-height: 86px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.df-brand {
	display: inline-flex;
	align-items: center;
	gap: 0;
	min-width: 250px;
	color: #fff;
	text-decoration: none;
}

.df-brand:hover,
.df-brand:focus {
	color: #fff;
}

.df-brand-image {
	display: block;
	width: min(233px, 100%);
	height: auto;
	filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .5));
}

.df-header-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(190px, 274px));
	gap: 12px;
	flex: 1;
	justify-content: end;
}

.df-action {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 22px;
	border: 1px solid var(--df-gold-deep);
	border-radius: 10px;
	color: var(--df-gold);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.df-action svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.df-action-primary {
	color: #12100a;
	border-color: var(--df-yellow);
	background: linear-gradient(135deg, #fff1a4 0%, #ffd331 48%, #c48700 100%);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22), 0 8px 24px rgba(217, 162, 27, .18);
}

.df-action-secondary {
	background: linear-gradient(120deg, rgba(255, 211, 49, .055), rgba(0, 0, 0, .18));
	box-shadow: inset 0 0 0 2px #050300;
}

.df-action:hover,
.df-action:focus-visible {
	transform: translateY(-1px);
	border-color: var(--df-gold-light);
	box-shadow: 0 0 0 3px rgba(244, 189, 25, .14), 0 8px 22px rgba(0, 0, 0, .35);
}

.df-action-primary:hover,
.df-action-primary:focus-visible {
	color: #050505;
	background: linear-gradient(135deg, #fff0aa 0%, #ffca19 100%);
}

.df-action-secondary:hover,
.df-action-secondary:focus-visible {
	color: #fff0a7;
	background: rgba(244, 189, 25, .07);
}

.df-primary-nav {
	border-top: 1px solid rgba(255, 211, 49, .42);
	border-bottom: 1px solid rgba(255, 211, 49, .28);
	background:
		linear-gradient(90deg, rgba(255, 211, 49, .13), transparent 22%, transparent 78%, rgba(255, 211, 49, .13)),
		linear-gradient(180deg, #120b00, #050505);
}

.df-nav-inner {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
}

.df-nav-item {
	position: relative;
	min-height: 57px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 7px 10px 6px;
	border-left: 1px solid rgba(255, 211, 49, .24);
	color: #f4f4f4;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease;
}

.df-nav-item:last-child {
	border-right: 1px solid rgba(255, 211, 49, .24);
}

.df-nav-item::after {
	content: "";
	position: absolute;
	left: 30%;
	right: 30%;
	bottom: 0;
	height: 2px;
	background: transparent;
	box-shadow: none;
	transition: left .2s ease, right .2s ease, background-color .2s ease;
}

.df-nav-icon {
	width: 21px;
	height: 21px;
	color: var(--df-gold);
}

.df-nav-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.df-nav-item:hover,
.df-nav-item:focus-visible,
.df-nav-item.is-active {
	color: var(--df-gold-light);
	background: linear-gradient(180deg, rgba(255, 211, 49, .15), rgba(217, 162, 27, .025));
}

.df-nav-item:hover::after,
.df-nav-item:focus-visible::after,
.df-nav-item.is-active::after {
	left: 24%;
	right: 24%;
	background: var(--df-gold);
	box-shadow: 0 0 10px rgba(244, 189, 25, .72);
}

.df-menu-toggle {
	display: none;
	width: 44px;
	height: 42px;
	padding: 10px;
	border: 1px solid rgba(244, 189, 25, .55);
	border-radius: 8px;
	background: rgba(244, 189, 25, .04);
	cursor: pointer;
}

.df-site-header .df-menu-toggle:hover,
.df-site-header .df-menu-toggle:focus,
.df-site-header .df-menu-toggle:active,
.df-site-header .df-menu-toggle[aria-expanded="true"] {
	color: var(--df-gold);
	border-color: rgba(244, 189, 25, .8);
	background: rgba(244, 189, 25, .08);
}

.df-menu-toggle > span:not(.screen-reader-text) {
	display: block;
	width: 100%;
	height: 2px;
	margin: 4px 0;
	border-radius: 2px;
	background: var(--df-gold);
	transition: transform .2s ease, opacity .2s ease;
}

.df-menu-toggle:focus-visible {
	outline: 3px solid rgba(244, 189, 25, .35);
	outline-offset: 2px;
}

.df-menu-toggle[aria-expanded="true"] > span:nth-of-type(2) {
	transform: translateY(6px) rotate(45deg);
}

.df-menu-toggle[aria-expanded="true"] > span:nth-of-type(3) {
	opacity: 0;
}

.df-menu-toggle[aria-expanded="true"] > span:nth-of-type(4) {
	transform: translateY(-6px) rotate(-45deg);
}

body.admin-bar .df-site-header {
	top: 32px;
}

@media (min-width: 783px) {
	.df-site-header {
		position: sticky;
		top: 0;
	}
}

@media (max-width: 900px) {
	.df-header-inner {
		gap: 16px;
	}

	.df-brand {
		min-width: 0;
	}

	.df-header-actions {
		grid-template-columns: repeat(2, auto);
	}

	.df-action {
		padding-inline: 15px;
	}
}

@media (max-width: 720px) {
	.df-header-inner,
	.df-nav-inner {
		width: min(100% - 24px, 1180px);
	}

	.df-header-inner {
		min-height: 72px;
		flex-wrap: wrap;
		gap: 10px;
		padding-top: 8px;
	}

	.df-brand-image {
		width: min(205px, 100%);
	}

	.df-header-actions {
		order: 3;
		width: 100%;
		grid-template-columns: 1fr 1fr;
		padding-bottom: 10px;
	}

	.df-action {
		min-height: 39px;
		padding: 8px 12px;
		font-size: 12px;
	}

	.df-menu-toggle {
		display: block;
		margin-left: auto;
	}

	.df-primary-nav {
		display: none;
	}

	.df-primary-nav.is-open {
		display: block;
	}

	.df-nav-inner {
		grid-template-columns: repeat(2, 1fr);
		padding-block: 8px;
	}

	.df-nav-item,
	.df-nav-item:last-child {
		min-height: 58px;
		border: 1px solid rgba(244, 189, 25, .12);
	}
}

@media (prefers-reduced-motion: reduce) {
	.df-site-header * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
