/**
 * SiliconTrendz header — green theme with neon accents.
 */

:root {
	--stz-green: #1A7A3A;
	--stz-green-dark: #0D2B1A;
	--stz-green-mid: #155e2e;
	--stz-green-neon: #39FF6A;
	--stz-green-neon2: #00E84B;
	--stz-green-light: #E8F5E9;
	--stz-green-pale: #F0FAF3;
	--stz-white: #FFFFFF;
	--stz-text-dark: #0D1A0F;
	--stz-text-mid: #374151;
	--stz-text-muted: #6B7280;
	--stz-text-light: #9CA3AF;
	--stz-border: #D1FAE5;
	--stz-font-display: 'Barlow Condensed', sans-serif;
	--stz-font-body: 'Barlow', sans-serif;
}

/* Announce Bar */
.stz-announce-bar {
	background: var(--stz-green-neon);
	color: var(--stz-green-dark);
	text-align: center;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	padding: 9px 24px;
	text-transform: uppercase;
}

.stz-announce-bar a {
	text-decoration: underline;
	cursor: pointer;
	margin-left: 8px;
	color: inherit;
}

/* Header */
.stz-header {
	background: var(--stz-green-dark);
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(57, 255, 106, 0.12);
}

.stz-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	height: 74px;
	gap: 24px;
}

/* Logo */
.stz-header__logo-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-decoration: none;
}

.stz-header__logo-name {
	font-family: var(--stz-font-display);
	font-size: 28px;
	font-weight: 900;
	color: white;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	line-height: 1;
}

.stz-header__logo-tagline {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--stz-green-neon);
	text-transform: uppercase;
	opacity: 0.85;
}

/* Navigation */
.stz-header__nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

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

.stz-header__nav .stz-header__menu li {
	display: flex;
}

.stz-header__nav .stz-header__menu a {
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.2s;
	white-space: nowrap;
}

.stz-header__nav .stz-header__menu a:hover,
.stz-header__nav .stz-header__menu a.active {
	color: var(--stz-green-neon);
}

/* Header Right */
.stz-header__right {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}

/* Search Icon */
.stz-header__search-icon {
	color: rgba(255, 255, 255, 0.6);
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s;
	border: none;
	background: transparent;
}

.stz-header__search-icon:hover {
	background: rgba(255, 255, 255, 0.1);
	color: white;
}

.stz-header__search-icon svg {
	width: 18px;
	height: 18px;
}

/* CTA Buttons */
.stz-btn-cta {
	background: var(--stz-green-neon);
	color: var(--stz-green-dark);
	font-family: var(--stz-font-display);
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 10px 22px;
	border-radius: 3px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
	text-decoration: none;
	border: none;
	cursor: pointer;
}

.stz-btn-cta:hover {
	background: var(--stz-green-neon2);
	transform: translateY(-2px);
	box-shadow: 0 0 20px rgba(57, 255, 106, 0.5);
}

/* Secondary Nav */
.stz-secondary-nav {
	background: var(--stz-white);
	border-bottom: 1px solid var(--stz-border);
}

.stz-secondary-nav__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	height: 42px;
	overflow-x: auto;
}

.stz-secondary-nav__inner::-webkit-scrollbar {
	display: none;
}

.stz-secondary-nav a {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--stz-text-muted);
	padding: 0 16px;
	height: 42px;
	display: flex;
	align-items: center;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	transition: all 0.2s;
	text-decoration: none;
}

.stz-secondary-nav a:hover,
.stz-secondary-nav a.active {
	color: var(--stz-green);
	border-bottom-color: var(--stz-green-neon);
}

/* Mobile Drawer */
.stz-header__drawer {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 100051;
	visibility: hidden;
}

.stz-header__drawer.is-open {
	pointer-events: auto;
	visibility: visible;
}

.stz-header__drawer-inner {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(20rem, 88vw);
	background: var(--stz-green-dark);
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
	padding: 80px 24px 24px;
	transform: translateX(-100%);
	transition: transform 0.25s ease;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.stz-header__drawer.is-open .stz-header__drawer-inner {
	transform: translateX(0);
}

.stz-header__drawer-nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.stz-header__drawer-nav a {
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stz-header__drawer-nav a:hover {
	color: var(--stz-green-neon);
}

.stz-header__drawer-cta {
	margin-top: auto;
}

.stz-header__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 100050;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.stz-header__overlay.is-visible {
	opacity: 1;
	pointer-events: auto;
}

/* Search Panel */
.stz-search-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--stz-green-dark);
	border-bottom: 1px solid rgba(57, 255, 106, 0.12);
	padding: 16px 24px;
	z-index: 100049;
	display: none;
}

.stz-search-panel.active {
	display: block;
}

.stz-search-panel__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.stz-search-form {
	display: flex;
	align-items: stretch;
}

.stz-search-form input[type="search"] {
	flex: 1;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(57, 255, 106, 0.25);
	border-right: none;
	color: white;
	padding: 0 18px;
	font-size: 15px;
	height: 52px;
	border-radius: 3px 0 0 3px;
	outline: none;
	transition: border-color 0.2s;
}

.stz-search-form input::placeholder {
	color: rgba(255, 255, 255, 0.28);
}

.stz-search-form input:focus {
	border-color: var(--stz-green-neon);
}

.stz-search-form button {
	background: var(--stz-green-neon);
	color: var(--stz-green-dark);
	border: none;
	padding: 0 20px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	height: 52px;
	border-radius: 0 3px 3px 0;
	cursor: pointer;
}

/* Mobile Toggle */
.stz-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: white;
	cursor: pointer;
	border-radius: 6px;
	transition: background-color 0.2s ease;
}

.stz-menu-toggle:hover {
	background: rgba(255, 255, 255, 0.1);
}

.stz-menu-toggle__bars,
.stz-menu-toggle__bars::before,
.stz-menu-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	position: relative;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.stz-menu-toggle__bars::before,
.stz-menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.stz-menu-toggle__bars::before {
	top: -7px;
}

.stz-menu-toggle__bars::after {
	top: 7px;
}

.stz-menu-toggle.is-open .stz-menu-toggle__bars {
	background: transparent;
}

.stz-menu-toggle.is-open .stz-menu-toggle__bars::before {
	transform: translateY(7px) rotate(45deg);
}

.stz-menu-toggle.is-open .stz-menu-toggle__bars::after {
	transform: translateY(-7px) rotate(-45deg);
}

/* Screen reader only */
.stz-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

html.stz-header-nav-open {
	overflow: hidden;
}

.admin-bar .stz-header__drawer-inner {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* Responsive */
@media (max-width: 900px) {
	.stz-header__nav {
		display: none;
	}

	.stz-menu-toggle {
		display: inline-flex;
	}

	.stz-header__cta--desktop {
		display: none;
	}
}

@media (max-width: 768px) {
	.stz-header__inner {
		padding: 0 16px;
	}

	.stz-header__right .stz-header__search-icon {
		display: none;
	}

	.stz-header__logo-name {
		font-size: 24px;
	}

	.stz-announce-bar {
		padding: 8px 16px;
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stz-header,
	.stz-header * {
		transition-duration: 0.01ms !important;
	}
}