/*
 * Site header — Vangalaxy look (big crest, three-line wordmark, short menu
 * with dropdowns, orange pill CTA). Plain CSS on purpose: the Tailwind sources
 * for assets/css/main.css are gone, so new styles live here. Loaded on every page.
 *
 * The header is fixed (not sticky) so it can shrink on scroll without making
 * the page jump. Pages other than home get top padding of the same height.
 */

:root { --vg-header-h: 136px; }
@media (max-width: 1279px) { :root { --vg-header-h: 108px; } }
@media (max-width: 639px) { :root { --vg-header-h: 76px; } }

body:not(.home) .site-main { padding-top: var(--vg-header-h); }

.vg-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	color: #fff;
	background: #120826;
	box-shadow: 0 6px 24px rgba(8, 3, 20, .35);
	transition: background-color .25s ease, box-shadow .25s ease;
}
.admin-bar .vg-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .vg-header { top: 46px; } }

.vg-header__inner {
	max-width: 1480px;
	height: var(--vg-header-h);
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	align-items: center;
	gap: 28px;
	transition: height .25s ease;
}

/* ---------- Brand ---------- */

.vg-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
	color: #fff;
	text-decoration: none;
}
.vg-brand img {
	/* logo.png has wide transparent margins, so draw it big and pull the margins in */
	height: var(--vg-logo-h, 180px);
	margin: calc(var(--vg-logo-h, 180px) * -.2) calc(var(--vg-logo-h, 180px) * -.09);
	width: auto;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
	transition: height .25s ease, margin .25s ease, transform .2s ease;
}
.vg-brand:hover img { transform: scale(1.04); }

.vg-brand__text {
	display: flex;
	flex-direction: column;
	font-family: "Barlow Condensed", "Russo One", system-ui, sans-serif;
	font-style: italic;
	font-weight: 800;
	line-height: .92;
	text-transform: uppercase;
}
.vg-brand__name {
	font-size: 42px;
	letter-spacing: .005em;
	background: linear-gradient(180deg, #fff 40%, #d9d4e4);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.vg-brand__sub {
	font-size: 34px;
	letter-spacing: .005em;
	background: linear-gradient(180deg, #ffb347 15%, #ff7a0d 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.vg-brand__tag {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 7px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .03em;
	color: #fff;
	transition: opacity .2s ease;
}
.vg-brand__tag::before,
.vg-brand__tag::after {
	content: "";
	width: 18px;
	height: 2px;
	background: currentColor;
}

.vg-header__divider {
	width: 2px;
	height: 64px;
	background: rgba(255, 255, 255, .55);
	flex-shrink: 0;
}

/* ---------- Desktop nav + dropdowns ---------- */

.vg-nav { flex: 1; display: none; }
.vg-nav ul { margin: 0; padding: 0; list-style: none; }
.vg-nav > ul {
	display: flex;
	align-items: center;
	justify-content: space-around;
	gap: 8px;
}
.vg-nav li { position: relative; }
.vg-nav > ul > li > a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 6px;
	font-family: "Barlow Condensed", system-ui, sans-serif;
	font-size: 21px;
	font-weight: 600;
	letter-spacing: .01em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
	transition: color .15s ease;
}
.vg-nav > ul > li > a:hover,
.vg-nav > ul > li:focus-within > a,
.vg-nav > ul > li.current-menu-item > a,
.vg-nav > ul > li.current-menu-ancestor > a { color: #ff9a3c; }

.vg-nav .menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-top: -4px;
	border-right: 2.5px solid currentColor;
	border-bottom: 2.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .15s ease;
}
.vg-nav .menu-item-has-children:hover > a::after,
.vg-nav .menu-item-has-children:focus-within > a::after { transform: translateY(3px) rotate(225deg); }

.vg-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	padding: 10px;
	border: 1px solid rgba(178, 102, 255, .45);
	border-radius: 12px;
	background: rgba(24, 10, 46, .98);
	box-shadow: 0 18px 40px rgba(6, 2, 16, .55);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.vg-nav li:hover > .sub-menu,
.vg-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.vg-nav .sub-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 8px;
	font-family: "Barlow", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}
.vg-nav .sub-menu a:hover,
.vg-nav .sub-menu .current-menu-item > a { background: rgba(255, 255, 255, .07); color: #ff9a3c; }

/* ---------- Register button ---------- */

.vg-register {
	display: none;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	padding: 13px 24px;
	border-radius: 999px;
	background: linear-gradient(180deg, #ff9a2e, #f47a10);
	color: #1a0b2e !important;
	font-family: "Barlow Condensed", system-ui, sans-serif;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: .01em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 8px 22px rgba(244, 122, 16, .35);
	transition: transform .15s ease, box-shadow .15s ease;
}
.vg-register:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(244, 122, 16, .5); }
.vg-register svg { flex-shrink: 0; }

/* ---------- Mobile toggle + menu ---------- */

.vg-menu-toggle {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 8px;
	color: #fff;
}
.vg-menu-toggle:hover { background: rgba(255, 255, 255, .1); }

.vg-mobile-menu {
	max-height: calc(100vh - var(--vg-header-h));
	overflow-y: auto;
	background: #160a2e;
	border-top: 1px solid rgba(255, 255, 255, .1);
}
.vg-mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.vg-mobile-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 6px;
	font-family: "Barlow Condensed", system-ui, sans-serif;
	font-size: 19px;
	font-weight: 600;
	text-transform: uppercase;
	color: #fff;
}
.vg-mobile-menu a:hover { background: rgba(255, 255, 255, .08); color: #ff9a3c; }
.vg-mobile-menu .sub-menu { padding: 0 0 6px 14px; border-left: 2px solid rgba(255, 138, 31, .5); margin-left: 12px; }
.vg-mobile-menu .sub-menu a {
	padding: 7px 12px;
	font-family: "Barlow", system-ui, sans-serif;
	font-size: 15px;
	text-transform: none;
	color: rgba(255, 255, 255, .85);
}
.vg-mobile-menu .vg-register { display: flex; justify-content: center; margin: 14px 0 0; }

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
	.vg-header__inner > .vg-register { display: inline-flex; }
	.vg-menu-toggle { margin-left: 0; }
	.vg-mobile-menu .vg-register { display: none; }
}

@media (min-width: 1280px) {
	.vg-nav { display: block; }
	.vg-menu-toggle { display: none; }
	.vg-header__inner > .vg-register { margin-left: 0; }
}

@media (max-width: 1440px) and (min-width: 1280px) {
	.vg-header__inner { gap: 20px; padding-inline: 22px; }
	.vg-brand { --vg-logo-h: 165px; }
	.vg-brand__name { font-size: 36px; }
	.vg-brand__sub { font-size: 29px; }
	.vg-brand__tag { font-size: 13px; }
	.vg-nav > ul > li > a { font-size: 19px; padding-inline: 8px; }
	.vg-register { font-size: 17px; padding: 12px 20px; }
}

@media (max-width: 1279px) {
	.vg-brand { --vg-logo-h: 130px; }
	.vg-brand__name { font-size: 34px; }
	.vg-brand__sub { font-size: 27px; }
	.vg-brand__tag { font-size: 12px; margin-top: 5px; }
	.vg-header__divider { display: none; }
}

@media (max-width: 639px) {
	.vg-header__inner { padding: 0 14px; gap: 10px; }
	.vg-brand { gap: 10px; }
	.vg-brand { --vg-logo-h: 92px; }
	.vg-brand__name { font-size: 24px; }
	.vg-brand__sub { font-size: 19px; }
	.vg-brand__tag { display: none; }
}

/* ---------- Scrolled: compact bar ---------- */

.vg-header.is-scrolled { --vg-header-h: 84px; }
.vg-header.is-scrolled .vg-brand { --vg-logo-h: 104px; }
.vg-header.is-scrolled .vg-brand__tag { display: none; }
.vg-header.is-scrolled .vg-brand__name { font-size: 30px; }
.vg-header.is-scrolled .vg-brand__sub { font-size: 24px; }
.vg-header.is-scrolled .vg-header__divider { height: 44px; }
@media (max-width: 639px) {
	.vg-header.is-scrolled { --vg-header-h: 66px; }
	.vg-header.is-scrolled .vg-brand { --vg-logo-h: 80px; }
	.vg-header.is-scrolled .vg-brand__name { font-size: 22px; }
	.vg-header.is-scrolled .vg-brand__sub { font-size: 17px; }
}

/* Home: the header floats over the hero photo until the page scrolls. */
.home .vg-header { background: transparent; box-shadow: none; }
.home .vg-header.is-scrolled,
.home .vg-header.is-open { background: rgba(18, 8, 38, .96); box-shadow: 0 6px 24px rgba(8, 3, 20, .35); }
