/* ================================
   HEADER & NAVIGATION
================================ */

/* WP admin bar adjustment */
body.admin-bar #site-header-custom {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar #site-header-custom {
		top: 46px;
	}
}

/* Header base */
#site-header-custom { position: fixed; top: 0; left: 0; right: 0; width: 100%; background: transparent; z-index: 12000; }
#site-header-custom .site-header-inner { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.site-branding { flex: 0 0 auto; max-width: 220px; display: flex; align-items: center; }
.site-branding img, .custom-logo img { max-height: 50px; height: auto; width: auto; display: block; object-fit: contain; }

/* Navigation */
#site-navigation { flex: 1 1 auto; text-align: right; }
#site-navigation .main-menu { display: flex; flex-direction: row; gap: 18px; align-items: center; margin: 0; padding: 0; list-style: none; }
#site-navigation .main-menu li { display: inline-flex; }
#site-navigation .main-menu a { color: #fff; text-decoration: none; padding: 6px 8px; font-size: 14px; font-weight: 100 !important; letter-spacing: 0.02em; font-family: Inter, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif; font-variation-settings: 'wght' 100 !important; }
#site-navigation .main-menu a:hover { color: #00b4ff; opacity: 0.9; }

/* Scrolled / sticky state */
#site-header-custom.scrolled { position: fixed; top: 0; left: 0; right: 0; background: rgba(0,0,0,0.2); }
#site-header-custom.scrolled .site-header-inner { padding: 10px 20px; }

@media(prefers-reduced-motion: reduce) {
	#site-header-custom { transition: none; }
}

/* ================================
   RESPONSIVE — mobile
================================ */
@media (max-width: 780px) {

	#site-header-custom .site-header-inner {
		padding: 10px 12px;
	}

	.site-branding img {
		max-width: 160px;
	}

	/* Hamburger button */
	.mobile-menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		background: none;
		border: none;
		cursor: pointer;
		padding: 0;
		z-index: 1;
		position: relative;
	}

	.hamburger,
	.hamburger::before,
	.hamburger::after {
		display: block;
		width: 22px;
		height: 2px;
		background: #ffffff;
		border-radius: 2px;
		transition: transform 0.25s ease, opacity 0.2s ease;
	}

	.hamburger {
		position: relative;
	}

	.hamburger::before,
	.hamburger::after {
		content: '';
		position: absolute;
		left: 0;
	}

	.hamburger::before { top: -7px; }
	.hamburger::after  { top:  7px; }

	/* Animated X when open */
	#mobile-menu-toggle[aria-expanded="true"] .hamburger {
		background: transparent;
	}
	#mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
		transform: translateY(7px) rotate(45deg);
	}
	#mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
		transform: translateY(-7px) rotate(-45deg);
	}

	/* Nav closed */
	#site-navigation {
		position: absolute;
		top: 100%;
		right: 0;
		width: 100%;
		background: rgba(15,15,16,0.95);
		padding: 0;
	}

	#site-navigation .main-menu {
		display: none;
		flex-direction: column;
		gap: 12px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	/* Nav open */
	#site-navigation.mobile-open {
		padding: 20px;
	}

	#site-navigation.mobile-open .main-menu {
		display: flex;
	}

	#site-navigation .main-menu li {
		width: 100%;
	}

	#site-navigation .main-menu a {
		display: block;
		width: 100%;
		padding: 10px 0;
	}
}

@media (min-width: 781px) {
	#mobile-menu-toggle { display: none !important; }
}
