/* ==========================================
   COLOR SCHEME & BASE VARIABLES
   ========================================== */
:root {
    /* DEFAULT: Forest Green Theme */
    --theme-dark: #074729;         /* Dark Bar Background */
    --theme-primary: #0d5c3a;      /* Hover & Button Accent Color */
    --theme-text: #222222;         /* Main Menu Text */
    --theme-light-bg: #e6f4ea;     /* Submenu Hover Highlight */
    
    /* UNCOMMENT BELOW IF YOU PREFER NAVY BLUE (LIKE THE GREENFIELD IMAGE):
    --theme-dark: #0b1f3a; 
    --theme-primary: #0a2540;
    --theme-light-bg: #f0f4f8;
    */
}

/* Base Header Layout */
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------------
   1. TOP CONTACT BAR
   ------------------------------------------ */
.top-header-bar {
    background-color: var(--theme-dark);
    color: #ffffff;
    font-size: 0.82rem;
    padding: 8px 0;
    font-family: inherit;
}

.top-header-bar .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info-left span {
    margin-right: 20px;
}

.top-info-left i {
    color: #7ce3aa;
    margin-right: 5px;
}

.top-social-right span {
    margin-right: 8px;
}

.top-social-right a {
    color: #ffffff;
    margin-left: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.top-social-right a:hover {
    opacity: 0.8;
}

/* ------------------------------------------
   2. MAIN NAVBAR & LOGO
   ------------------------------------------ */
.main-site-header {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.main-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

/* Logo */
.brand-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 48px;
    width: auto;
    margin-right: 12px;
}

.logo-text-block {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--theme-dark);
    line-height: 1;
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--theme-primary);
    letter-spacing: 1.5px;
    margin-top: 2px;
}

/* Menu Items */
.main-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0 14px;
    height: 75px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--theme-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.drop-arrow {
    font-size: 0.65rem;
    margin-left: 5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--theme-primary);
}

.nav-link.active {
    border-bottom: 3px solid var(--theme-primary);
}

/* ------------------------------------------
   3. DROPDOWNS (PURE CSS - NO JS NEEDED)
   ------------------------------------------ */
.sub-dropdown-menu, .nested-sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-radius: 4px;
    list-style: none;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-in-out;
}

.sub-dropdown-menu li {
    position: relative;
}

.sub-dropdown-menu a, .nested-sub-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    font-size: 0.88rem;
    color: var(--theme-text);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.sub-dropdown-menu a:hover, .nested-sub-menu a:hover {
    background-color: var(--theme-light-bg);
    color: var(--theme-primary);
}

.arrow-right {
    font-size: 0.65rem;
}

/* Nested Submenu Side Open */
.nested-sub-menu {
    top: 0;
    left: 100%;
}

/* Hover Actions to Reveal Dropdowns */
.has-dropdown:hover > .sub-dropdown-menu,
.has-nested:hover > .nested-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* CTA Portal Button */
.portal-cta-btn {
    background-color: var(--theme-dark);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.25s ease, transform 0.15s ease;
}

.portal-cta-btn:hover {
    background-color: var(--theme-primary);
    transform: translateY(-1px);
    color: #ffffff;
}

/* Hamburger & Mobile Toggle Controls */
.mobile-toggle-checkbox, .mobile-hamburger-btn {
    display: none;
}

.mobile-portal-btn-wrap {
    display: none;
}

/* ------------------------------------------
   4. MOBILE RESPONSIVE ADAPTATION
   ------------------------------------------ */
@media (max-width: 992px) {
    .top-header-bar {
        display: none; /* Hide top bar on mobile screens */
    }

    .desktop-only {
        display: none;
    }

    /* Mobile Hamburger Icon */
    .mobile-hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 19px;
        cursor: pointer;
    }

    .mobile-hamburger-btn span {
        height: 3px;
        width: 100%;
        background-color: var(--theme-dark);
        border-radius: 2px;
    }

    /* Mobile Menu Drawer */
    .nav-menu-wrapper {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease-in-out;
        flex-direction: column;
    }

    .main-nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        height: auto;
        padding: 14px 20px;
        border-bottom: 1px solid #f2f2f2;
    }

    .nav-link.active {
        border-bottom: 1px solid #f2f2f2;
    }

    /* Mobile Expandable Dropdowns */
    .sub-dropdown-menu, .nested-sub-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: #f9f9f9;
        padding-left: 15px;
    }

    .has-dropdown:hover > .sub-dropdown-menu,
    .has-nested:hover > .nested-sub-menu {
        display: block;
    }

    .mobile-portal-btn-wrap {
        display: block;
        padding: 15px 20px;
    }

    .mobile-portal-btn-wrap .portal-cta-btn {
        display: block;
        text-center: center;
        width: 100%;
    }

    /* Show Navigation When Toggled */
    .mobile-toggle-checkbox:checked ~ .nav-menu-wrapper {
        max-height: 550px;
        overflow-y: auto;
    }
}