/* =========================================================
   Dotyrich — Header (Off-Canvas)
   Scope: .dr-header-wrap, .dr-header, .dr-header__drawer
   ========================================================= */

.dr-header-wrap { position: relative; z-index: 1000; }

.dr-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1000;
	background: rgba(10, 10, 10, 0.85);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	transition: background 0.4s var(--dr-ease), border-color 0.4s var(--dr-ease);
}

.dr-header.is-scrolled {
	background: rgba(10, 10, 10, 0.96);
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dr-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1600px;
	margin: 0 auto;
	padding: 20px 40px;
}

/* === Logo === */
.dr-header__logo {
	display: inline-flex;
	align-items: center;
	color: #ffffff !important;
	text-decoration: none;
	letter-spacing: 0.18em;
	font-weight: 700;
	font-size: 18px;
}

.dr-header__logo-img { display: block; height: 32px; width: auto; }
.dr-header__logo-text { color: inherit; }

/* === Desktop horizontal nav (>1024px only) === */
.dr-header__nav-desktop {
	flex: 1;
	display: flex;
	justify-content: center;
}

.dr-header__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 36px;
}

.dr-header__nav-item { position: relative; }

.dr-header__nav-link {
	position: relative;
	display: inline-block;
	padding: 8px 0;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: color 0.3s ease;
}

.dr-header__nav-link::after {
	content: '';
	position: absolute;
	left: 0; bottom: 2px;
	width: 0;
	height: 1px;
	background: var(--dr-accent);
	transition: width 0.4s var(--dr-ease);
}

.dr-header__nav-link:hover,
.dr-header__nav-item.is-current .dr-header__nav-link { color: var(--dr-accent) !important; }
.dr-header__nav-link:hover::after { width: 100%; }

/* === Actions === */
.dr-header__actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

/* === CTA === */
.dr-header__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	background: transparent;
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	transition: var(--dr-transition);
}

.dr-header__cta:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.7);
	transform: translateY(-1px);
}

.dr-header__cta svg { transition: transform 0.3s var(--dr-ease); }
.dr-header__cta:hover svg { transform: translateX(3px); }

/* === Hamburger toggle === */
.dr-header__toggle {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 6px;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #ffffff;
	cursor: pointer;
	font-family: var(--dr-font);
	outline: none;
}

.dr-header__toggle:hover,
.dr-header__toggle:focus,
.dr-header__toggle:active {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

.dr-header__burger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 28px;
	height: 18px;
	position: relative;
}

.dr-header__burger span {
	display: block;
	width: 28px;
	height: 1.5px;
	background: #ffffff;
	transition: var(--dr-transition);
}

.dr-header__burger span:nth-child(2) { width: 18px; margin-left: auto; }

.dr-header-wrap.is-open .dr-header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 28px; }
.dr-header-wrap.is-open .dr-header__burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.dr-header-wrap.is-open .dr-header__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 28px; }

.dr-header__toggle:hover .dr-header__burger span:nth-child(2) { width: 28px; }

.dr-header__toggle-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #ffffff;
}

/* === Overlay === */
.dr-header__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 1100;
	opacity: 0;
	transition: opacity 0.5s var(--dr-ease);
	cursor: pointer;
}

.dr-header__overlay[hidden] { display: none; }
.dr-header-wrap.is-open .dr-header__overlay { opacity: 1; }

/* === Drawer === */
.dr-header__drawer {
	position: fixed;
	top: 0; right: 0; bottom: 0;
	width: 540px;
	max-width: 100vw;
	background: linear-gradient(180deg, #0f0f0f 0%, #1f4248 100%);
	border-left: 1px solid rgba(255, 255, 255, 0.06);
	z-index: 1200;
	transform: translateX(100%);
	transition: transform 0.6s var(--dr-ease);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	color: #ffffff;
}

.dr-header__drawer[hidden] { display: flex; }
.dr-header-wrap.is-open .dr-header__drawer { transform: translateX(0); }

.dr-header__drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px 44px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dr-header__drawer-eyebrow {
	font-size: 11px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75) !important;
	font-weight: 600;
}

.dr-header__close {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 4px;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #ffffff;
	cursor: pointer;
	transition: color 0.3s ease;
	font-family: var(--dr-font);
	outline: none;
}

.dr-header__close:hover,
.dr-header__close:focus,
.dr-header__close:active {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

.dr-header__close-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.dr-header__close:hover { color: rgba(255, 255, 255, 0.7) !important; }

/* === Menu === */
.dr-header__menu { flex: 1; padding: 16px 0; }

.dr-header__menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dr-header__menu-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	position: relative;
	overflow: hidden;
}

.dr-header__menu-item::before {
	content: '';
	position: absolute;
	left: 0; top: 0;
	width: 3px; height: 100%;
	background: #ffffff;
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform 0.5s var(--dr-ease);
}

.dr-header__menu-item:hover::before { transform: scaleY(1); transform-origin: top; }

.dr-header__menu-link {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: center;
	gap: 20px;
	padding: 28px 44px;
	color: #ffffff !important;
	text-decoration: none;
	transition: var(--dr-transition);
	position: relative;
}

.dr-header__menu-link:hover { padding-left: 56px; }

.dr-header__menu-num {
	font-size: 11px;
	letter-spacing: 0.2em;
	color: var(--dr-text-dim);
	font-weight: 500;
	font-family: var(--dr-font);
}

.dr-header__menu-text { display: flex; flex-direction: column; gap: 6px; }

.dr-header__menu-label {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 600;
	color: #ffffff;
	letter-spacing: -0.02em;
	line-height: 1.1;
	transition: color 0.3s ease;
}

.dr-header__menu-item:hover .dr-header__menu-label { color: rgba(255, 255, 255, 0.7) !important; }

.dr-header__menu-desc {
	font-size: 0.875rem;
	color: var(--dr-text-muted);
	font-weight: 400;
	letter-spacing: 0;
	max-width: 320px;
	line-height: 1.45;
}

.dr-header__menu-arrow {
	display: inline-flex;
	align-items: center;
	color: var(--dr-text-dim);
	transition: var(--dr-transition);
}

.dr-header__menu-item:hover .dr-header__menu-arrow {
	color: #ffffff;
	transform: translateX(6px);
}

.dr-header__menu-item.is-featured {
	background: rgba(255, 255, 255, 0.04);
}

.dr-header__menu-item.is-featured .dr-header__menu-label::after {
	content: '★';
	display: inline-block;
	margin-left: 12px;
	font-size: 0.5em;
	color: rgba(255, 255, 255, 0.6);
	transform: translateY(-6px);
}

/* === Drawer Footer === */
.dr-header__drawer-foot {
	padding: 28px 44px 36px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dr-header__foot-label {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--dr-text-muted);
	font-weight: 500;
}

.dr-header__foot-email {
	font-size: 1.125rem;
	color: #ffffff !important;
	font-weight: 600;
	transition: color 0.3s ease;
	letter-spacing: -0.01em;
}

.dr-header__foot-email:hover { color: rgba(255, 255, 255, 0.7) !important; }

/* === Body lock when drawer open === */
body.dr-no-scroll { overflow: hidden; }

/* === Responsive: off-canvas only on tablet + mobile (<= 1024px) === */

/* Desktop (>1024px): show horizontal nav, hide hamburger + drawer affordances */
@media (min-width: 1025px) {
	.dr-header__toggle { display: none !important; }
	.dr-header__drawer { display: none !important; }
	.dr-header__overlay { display: none !important; }
	body.dr-no-scroll { overflow: auto; }
}

/* Tablet + Mobile (<=1024px): hide horizontal nav, show hamburger */
@media (max-width: 1024px) {
	.dr-header__nav-desktop { display: none !important; }
}

@media (max-width: 768px) {
	.dr-header__inner { padding: 14px 20px; gap: 12px; }
	.dr-header__cta { display: none; }
	.dr-header__toggle-label { display: none; }
	.dr-header__drawer { width: 100%; }
	.dr-header__drawer-head,
	.dr-header__drawer-foot { padding-left: 24px; padding-right: 24px; }
	.dr-header__menu-link { padding: 22px 24px; grid-template-columns: 36px 1fr 28px; gap: 14px; }
	.dr-header__menu-link:hover { padding-left: 32px; }
	.dr-header__menu-label { font-size: 1.5rem; }
}
