/*******************************************************************************
    *   Desktop Header Navigation (Premium Style)
*******************************************************************************/
.glass-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    z-index: 2000;
	background: rgba(22, 23, 28, 0.85);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255,255,255,0.06);
	box-shadow:
		0 4px 12px rgba(0,0,0,0.45),
		inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Internal layout */
.nav-inner {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/*******************************************************************************
    *   Logo
*******************************************************************************/
.logo a {
	color: #fff;
	font-weight: 700;
	font-size: 1.3rem;
	letter-spacing: 0.03em;
	text-decoration: none;
}

.logo a span.nd {
	color: var(--accent);
}
/* Badge container */
.site-badge {
    padding: 8px 14px;
    border-radius: 0 0 20px 20px;

    background: #1f2024;            /* matte */
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 -1px 0 rgba(0,0,0,0.45),
        0 2px 6px rgba(0,0,0,0.45);

    border: 1px solid rgba(255,255,255,0.08);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

/* Hover state */
.site-badge:hover {
    background: #27282e;
    border-color: rgba(255,255,255,0.14);
}

/* Text inside */
.brand-text {
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	padding: 0 1em;
}

/* Optional gold accent for ND */
.brand-text .accent {
    color: var(--accent);
}

/*******************************************************************************
    *   Menu items (desktop)
*******************************************************************************/
.desktop-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.desktop-menu > a,
.desktop-menu .menu-item > a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;

    padding: 4px 0;
    position: relative;
    transition: color 0.2s ease;
}

/* Hover color */
.desktop-menu > a:hover,
.desktop-menu .menu-item > a:hover {
    color: var(--accent);
}

/* Underline on hover */
.desktop-menu > a::after,
.desktop-menu .menu-item > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.desktop-menu > a:hover::after,
.desktop-menu .menu-item > a:hover::after {
    width: 100%;
}

/* Active menu item */
.nav-center a.active {
	color: var(--accent);
	font-weight: 600;
	position: relative;
}

/* Active underline */
.nav-center a.active::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	height: 2px;
	width: 100%;
	background: var(--accent);
	border-radius: 2px;
}


/*******************************************************************************
    *   Header Layout: Left + Center + Right
*******************************************************************************/

.nav-inner {
	display: flex;
	align-items: stretch;
	justify-content: space-between;

	max-width: 1400px;
	width: 100%;
	margin: 0 auto;

	padding: 0 2rem;
	height: 64px;
}

.nav-left,
.nav-right {
	flex: 0 0 auto;
	display: flex;
	gap: 1rem;
	align-items: center;
}
.nav-left{
	align-items: stretch;
}
.nav-center {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 2.2rem;
}
.nav-center a,
.nav-center .menu-item > a,
.nav-center .menu-item {
	font-size: 0.95rem;
	color: rgba(255,255,255,0.85);
	font-weight: 500;
	text-decoration: none;
	padding: 3px 0;
	transition: color 0.2s ease;
	display: flex;
	align-items: stretch;
	justify-content: center;
}
.nav-center > a,
.nav-center .menu-item > a{
	align-items: center;
}


.nav-center a:hover {
	color: var(--accent);
}

.nav-center a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	height: 2px;
	width: 0;
	background: var(--accent);
	transition: width 0.25s ease;
}

.nav-center a:hover::after {
	width: 100%;
}


/*******************************************************************************
    *   Header Icons
*******************************************************************************/
.header-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;

	display: flex;
	align-items: center;
	justify-content: center;

	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);

	cursor: pointer;

	transition: background 0.2s ease, border-color 0.2s ease;
}

.header-icon:hover {
	background: rgba(255,255,255,0.14);
	border-color: rgba(255,255,255,0.22);
}

/*******************************************************************************
	*    MEGA MENU
*******************************************************************************/
/* Hide by default */
.mega-menu {
	position: absolute;
	left: 0%;
	top: 80%;
	width: 100%;

	opacity: 0;
	visibility: hidden;

	padding-top: 1rem;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	z-index: 50;
}

.menu-item:hover .mega-menu {
	opacity: 1;
	visibility: visible;
}
.mega-menu a{
	position: relative;
}
/* Mega menu surface */
.mega-content {
	background: rgba(20, 20, 20, 0.85);
	backdrop-filter: blur(18px);
	border-radius: 12px;
	padding: 1.4rem 2rem;
	display: flex;
	flex-wrap: wrap;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
	justify-content: center;
}
.mega-col{
	flex-basis: 200px;
}

.mega-col h4 {
	color: #f7d48a;
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.mega-col a {
	display: block;
	margin-bottom: 0.4rem;

	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;

	transition: color 0.2s ease;
}

.mega-col a:hover {
	color: #fff;
}

/* Image column */
.mega-col.mega-image img {
	width: 100%;
	border-radius: 8px;

	border: 1px solid rgba(255, 255, 255, 0.08);
}

/*******************************************************************************
    *   Mobile Menu (Matte Control Panel Style)
*******************************************************************************/
.mobile-menu {
    display: none;
    flex-direction: column;

    padding: 20px 0;
    gap: 0;

    /* Matte panel, no gloss, no transparency */
    background: #13151c;
    background: linear-gradient(to bottom, #1c1e27 0%, #13151c 100%);

    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    z-index: 900;

    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.48);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.menu-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}


/*******************************************************************************
    *   Menu Block Rows
*******************************************************************************/
.mobile-accordion,
.mobile-menu .single-link {
    width: 100%;
}

/* Each section header gets a matte button look */
.acc-header,
.mobile-menu .single-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 22px;

    color: var(--text-1);
    font-size: 16px;
    text-decoration: none;
    width: 100%;

    background: #1d1f28;
    border-top: 1px solid #101218;
    border-bottom: 1px solid #07080c;

    transition: background 0.2s ease, color 0.2s ease;
}

/* Hover effect: lighter matte with golden accent text */
.acc-header:hover,
.mobile-menu .single-link:hover {
    background: #2b2e3a;
    color: var(--accent); /* your gold */
}

/*******************************************************************************
    *  Accordion panels (inside sections)
*******************************************************************************/
.acc-panel {
    display: none;
    flex-direction: column;
    background: #14161d;
    padding-left: 22px;
    padding-bottom: 10px;

    border-left: 3px solid rgba(255, 200, 90, 0.15); /* golden hint */
}

.acc-panel a {
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-2);
    text-decoration: none;

    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.acc-panel a:hover {
    color: var(--accent);
    padding-left: 4px;
}

/*******************************************************************************
    *   Mobile Toggle Button
*******************************************************************************/
.mobile-toggle {
    display: none;
    background: #1c1e27;
    border: 1px solid rgba(255, 255, 255, 0.12);

    padding: 3px 10px;
    border-radius: var(--radius);
    cursor: pointer;

    width: 40px;
    height: 34px;

    transition: background 0.25s ease, border-color 0.25s ease;
}

.mobile-toggle:hover {
    background: #2b2e3a;
    border-color: rgba(255, 255, 255, 0.22);
}

.mobile-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-1);
    margin: 5px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* X animation */
.mobile-toggle.open .bar1 {
    transform: translateY(8px) rotate(45deg);
}
.mobile-toggle.open .bar2 {
    opacity: 0;
}
.mobile-toggle.open .bar3 {
    transform: translateY(-8px) rotate(-45deg);
}


/*******************************************************************************
    *   Mobile Visibility Rules
*******************************************************************************/
@media (max-width: 820px) {
    .desktop-menu {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-inner {
        justify-content: space-between;
    }
}