:root {
    --primary-dark: #2A8741;
    --gradient-start: #d4af37;
    --gradient-end: #ffd700;
    --text-primary: #1f2937;
    --text-secondary: #fff;
    --bg-primary: #0D0D0D;
    --bg-secondary: #f3f4f6;
}

body{
	background: var(--bg-primary)!important;
}

/* Header Container */
.headercontainer {
    display: flex;
    padding: 10px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
	justify-self: center;
    width: 100% !important;
    right: 0;
    background: rgb(0, 0, 0);
    box-shadow: 0 4px 30px rgb(0 0 0 / 20%);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 9999999999999999;
}

.headerwrapper{
    background: #000;
    width: 100% !important;
    max-width: 1200px;
    place-self: center;
}
/* Container for inner content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
	overflow: hidden!important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scrolled .container {
    height: 70px;
}

/* Site Branding - Centered */
.site-branding {
    display: flex;
    align-items: center;
    position: absolute;
    z-index: 2;
}

.site-branding img {
    height: 50px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (max-width: 768px){
	.site-branding img{
		height: 38px;
	}
}

.site-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.site-title a {
    color: var(--text-primary);
    padding-left: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hamburger Toggle - Left Positioned */
.menu-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    margin-left: auto;
	right: 0;
}

/* Hamburger Icon Styles */
.menu-toggle-inner,
.menu-toggle-inner::before,
.menu-toggle-inner::after {
    width: 28px;
    height: 2px;
    background: radial-gradient(circle at top left, #24c25d 16%, #167a1a 80%);
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    left: 6px;
}

.menu-toggle-inner {
    top: 19px;
	width: 27px!important;
}

.menu-toggle-inner::before {
    content: '';
    top: -8px;
	width: 36px !important;
    color: white !important;
    background: white;
    left: 0;
}

.menu-toggle-inner::after {
    content: '';
    top: 8px;
    width: 18px!important;
    left: 0!important;
    background: #fff;
}

/* Animate to "X" when toggled */
.menu-toggle[aria-expanded="true"] .menu-toggle-inner {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-inner::before {
    transform: rotate(45deg) translate(5.5px, 5.5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-inner::after {
    transform: rotate(-45deg) translate(5.5px, -5.5px);
	width: 36px!important;
}

/* Main Navigation Container */
.main-navigation {
    display: block; /* Changed from flex to block */
    position: static; /* Ensure it's not affecting overlay positioning */
}

/* Overlay Menu (App Drawer) with Glass Effect */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
	min-height: 100vh;
    max-width: 95% !important;
    background: rgb(62 62 62 / 48%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 80px 20px 20px 20px; /* Added top padding for menu */
    z-index: 1000; /* Ensure it's above other elements */
}

/* Reveal Overlay When Menu is Open */
.menu-toggle[aria-expanded="true"] ~ .main-navigation .menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Important: Direct JS control of menu visibility */
body.menu-open .menu-overlay {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Menu Container: Top Left Positioning */
.menu-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start; /* Left align menu items */
    text-align: left;
    margin-top: 20px;
    align-self: flex-start; /* Position at top left */
}

/* Menu List Styles */
.menu-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
	align-items: self-start;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-container li {
    position: relative;
}

.menu-container a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start; /* Left align text */
}

.menu-container a:hover {
    color: var(--primary-dark);
}

.menu-container a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-container a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* CTA Button - Right Positioned */
.headercontainer > .cta-button {
    margin-left: auto; /* Push to right */
    position: relative;
    z-index: 2;
}

.cta-button {
    background: radial-gradient(circle at top left, #356847 16%, #167a1a 80%);
    color: #ffffff;
    padding: 0.3rem 0.2rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-family: Verdana;
    overflow: hidden;
    isolation: isolate;
    font-size: 14px;
}

/* CTA Button in menu overlay - positioned at the top right */
.menu-overlay .cta-button {
    position: absolute;
    top: 20px;
    right: 20px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.cta-button:hover::before {
    opacity: 1;
}

/* Dropdown & Mega Menu Adjustments */
.menu-container .sub-menu,
.mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 1rem 0 0;
    background: transparent;
}

/* Mobile Header Container Adjustments */
@media screen and (max-width: 1023px) {
    .headercontainer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin: 0;
        height: 70px;
        padding: 0 10px;
        box-sizing: border-box;
    }
}