/* ===== PREMIUM HEADER VARIABLES ===== */
/* ===== NAVBAR ===== */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    z-index: 999;
    width: 100%;
    max-width: none;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 70px;
    box-shadow: var(--shadow-sm);
    transition: all .4s var(--ease-out);
}

#nav.scrolled {
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--shadow-lg)
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none !important;
}

.nav-mark {

    height: 45px;

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

    font-size: 18px;
    font-weight: 700;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.nav-mark::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .9
}

.nav-mark span {
    position: relative;
    z-index: 1
}

.nav-titles {
    display: flex;
    flex-direction: column;
}

.nav-name {
    color: var(--accent-color);
    font-size: 21px;
    font-weight: 700;

    letter-spacing: -.3px;
    line-height: 1
}

.nav-name em {
    color: var(--accent-color);
    font-style: normal
}

.nav-sub {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 3px;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 100px;
    transition: all .2s;
    text-decoration: none;

}

.nav-links a:hover {
    background: var(--section-bg);
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-links a.active {
    background: var(--section-bg);
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-cta {
    background: var(--primary-dark);
    color: #fff;
    padding: 9px 22px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .3s var(--ease-out);
    box-shadow: 0 4px 18px rgba(7, 61, 34, .25);
    text-decoration: none;

    cursor: pointer;
}

.nav-cta:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(7, 61, 34, .35);
    color: #fff;
    text-decoration: none;
}

.nav-cta svg {
    width: 14px;
    height: 14px;
    transition: transform .25s
}

.nav-cta:hover svg {
    transform: translateX(3px)
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    flex-direction: column;
    gap: 4.5px;
    cursor: pointer
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all .3s
}

.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px)
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0)
}

.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px)
}

.mob-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(5, 39, 24, .6);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.mob-drawer.open {
    opacity: 1;
    pointer-events: all;
    display: block
}

.mob-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #fff;
    padding: 80px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .4s var(--ease-out);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
}

.mob-drawer.open .mob-panel {
    transform: translateX(0)
}

.mob-panel a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    padding: 13px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;

}

.mob-panel a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.mob-cta {
    margin-top: 20px;
    background: var(--primary-dark);
    color: #fff;
    padding: 14px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    border: none;
    text-align: center;

    cursor: pointer;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 280px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s var(--ease-out);
    list-style: none;
    margin: 0;
}

.nav-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-custom a {
    display: block;
    padding: 8px 16px !important;
    border-radius: 0 !important;
    color: var(--text-color) !important;
    font-weight: 500 !important;
    margin: 0;
}

.dropdown-menu-custom a:hover {
    background: var(--section-bg) !important;
    color: var(--primary-color) !important;
}

@media(max-width:900px) {
    .nav-links {
        display: none
    }

    .nav-cta {
        display: none
    }

    .nav-hamburger {
        display: flex
    }

    #nav {

        padding: 0 20px
    }
    .nav-name{
        font-size:14px;
    }
}

/* ===== DARK THEME OVERRIDES FOR NAVBAR ===== */
#nav.nav-dark-theme {
    background: rgba(10, 20, 30, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#nav.nav-dark-theme.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#nav.nav-dark-theme .nav-name {
    color: #ffffff;
}

#nav.nav-dark-theme.scrolled .nav-name {
    color: var(--heading-color);
}

#nav.nav-dark-theme .nav-sub {
    color: rgba(255, 255, 255, 0.7);
}

#nav.nav-dark-theme.scrolled .nav-sub {
    color: var(--accent-color);
}

#nav.nav-dark-theme .nav-links a {
    color: rgba(255, 255, 255, 0.85);
}

#nav.nav-dark-theme.scrolled .nav-links a {
    color: var(--text-light);
}

#nav.nav-dark-theme .nav-links a:hover,
#nav.nav-dark-theme .nav-links a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

#nav.nav-dark-theme.scrolled .nav-links a:hover,
#nav.nav-dark-theme.scrolled .nav-links a.active {
    background: var(--section-bg);
    color: var(--primary-color);
}

#nav.nav-dark-theme .nav-cta {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#nav.nav-dark-theme.scrolled .nav-cta {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#nav.nav-dark-theme .nav-cta:hover {
    background: #ffffff;
    color: #0b111e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

#nav.nav-dark-theme.scrolled .nav-cta:hover {
    background: #0b111e;
    color: #ffffff;
}

#nav.nav-dark-theme .nav-hamburger span {
    background: #ffffff;
}

#nav.nav-dark-theme.scrolled .nav-hamburger span {
    background: var(--heading-color);
}

/* ===== CUSTOM HEADER & DROPDOWN PREMIUM IMPROVEMENTS ===== */

/* Keep "Products" button active when hovering the dropdown */
.nav-dropdown:hover>a {
    background: var(--section-bg);
    color: var(--primary-dark) !important;
}

/* Pseudo-bridge to prevent dropdown closing prematurely */
.dropdown-menu-custom::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

/* Adjust font size and styling for dropdown chevron */
.nav-dropdown .dropdown-toggle-custom i {
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-toggle-custom i {
    transform: rotate(180deg);
}

/* Mobile Accordion Dropdown Styles */
.mob-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.mob-dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color) !important;
    width: 100%;
}

.mob-dropdown-menu {
    display: flex;
    flex-direction: column;
    padding-left: 12px;
    background: #fafbfa;
    border-left: 2px solid rgba(15, 107, 62, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mob-dropdown-menu.show {
    max-height: 2500px !important;
}

.mob-dropdown-menu a {
    font-size: 14px !important;
    padding: 10px 12px !important;
    font-weight: 500 !important;
    color: var(--text-light) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02) !important;
}

.mob-dropdown-menu a:last-child {
    border-bottom: none !important;
}

.mob-dropdown-menu a:hover {
    color: var(--primary-color) !important;
}

/* ===== MEGA DROPDOWN STYLES (DESKTOP) ===== */
.nav-dropdown {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(15, 107, 62, 0.08);
    border-radius: 16px;
    padding: 0 !important;
    min-width: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    list-style: none;
    margin: 0;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-custom {
    display: grid;
    grid-template-columns: 240px 600px;
    overflow: hidden;
    width: 840px;
}

.mega-menu-left {
    background: linear-gradient(180deg, rgba(15, 107, 62, 0.02) 0%, rgba(15, 107, 62, 0.05) 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-menu-tab-btn {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px !important;
    color: var(--text-color) !important;
    font-weight: 600 !important;
    font-size: 14.5px !important;
    border-radius: 0 !important;
    border-left: 4px solid transparent !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none;
    cursor: pointer;
    background: transparent !important;
    margin: 0 !important;
}

.mega-menu-tab-btn i {
    font-size: 10px;
    opacity: 0.4;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mega-menu-tab-btn:hover {
    background: rgba(15, 107, 62, 0.03) !important;
    color: var(--primary-color) !important;
    border-left: 4px solid rgba(15, 107, 62, 0.4) !important;
}

.mega-menu-tab-btn.active-tab {
    background: #fff !important;
    color: var(--primary-color) !important;
    border-left: 4px solid var(--primary-color) !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

.mega-menu-tab-btn:hover i,
.mega-menu-tab-btn.active-tab i {
    transform: translateX(4px);
    opacity: 1;
    color: var(--primary-color);
}

.mega-menu-right {
    padding: 28px;
    background: #fff;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.mega-menu-tab-content {
    display: none;
    flex-direction: column;
    height: 100%;
    animation: fadeInTab 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-menu-tab-content.show {
    display: flex;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.submenu-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-align: left;
}

.submenu-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 8px;
}

.submenu-grid-1col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.submenu-grid-2col::-webkit-scrollbar {
    width: 5px;
}

.submenu-grid-2col::-webkit-scrollbar-track {
    background: transparent;
}

.submenu-grid-2col::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.submenu-grid-2col::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.mega-menu-tab-content a {
    display: block;
    position: relative;
    padding: 8px 12px 8px 24px !important;
    border-radius: 6px !important;
    color: var(--text-color) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    margin: 0 !important;
}

.mega-menu-tab-content a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 10px;
    opacity: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color);
    font-size: 10px;
}

.mega-menu-tab-content a:hover {
    background: rgba(15, 107, 62, 0.05) !important;
    color: var(--primary-dark) !important;
    padding-left: 28px !important;
}

.mega-menu-tab-content a:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Pseudo bridge to prevent menu closing between button and menu */
.dropdown-menu-custom::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

/* ===== MOBILE NESTED SUB-DROPDOWN ACCORDION ===== */
.mob-sub-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.mob-sub-dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    width: 100%;
    font-weight: 600 !important;
    color: var(--text-color) !important;
}

.mob-sub-dropdown-toggle i {
    transition: transform 0.3s ease;
}

.mob-sub-dropdown-menu {
    display: flex;
    flex-direction: column;
    padding-left: 8px;
    background: rgba(15, 107, 62, 0.01);
    border-left: 1px dashed rgba(15, 107, 62, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 8px;
}

.mob-sub-dropdown-menu.show {
    max-height: 1200px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.mob-sub-dropdown-menu a {
    font-size: 13px !important;
    padding: 8px 12px !important;
    font-weight: 500 !important;
    color: var(--text-light) !important;
    border-bottom: none !important;
    border-radius: 6px !important;
    transition: all 0.2s ease;
}

.mob-sub-dropdown-menu a:hover {
    background: rgba(15, 107, 62, 0.05) !important;
    color: var(--primary-color) !important;
}

/* ===== CATEGORIZED CHILLER DROPDOWN ===== */

/* Two-column layout: Horizontal | Vertical */
.chiller-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    height: 100%;
}

/* Each category column */
.chiller-category-col {
    display: flex;
    flex-direction: column;
    background: rgba(15, 107, 62, 0.02);
    border: 1px solid rgba(15, 107, 62, 0.07);
    border-radius: 12px;
    overflow: hidden;
}

/* Category header card (clickable) */
.chiller-cat-header {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 14px !important;
    background: rgba(15, 107, 62, 0.06);
    border-bottom: 1px solid rgba(15, 107, 62, 0.1);
    text-decoration: none;
    transition: background 0.25s ease !important;
    flex-shrink: 0;
}

.chiller-cat-header::before {
    display: none !important;
}

.chiller-cat-header:hover {
    background: rgba(15, 107, 62, 0.12) !important;
    padding-left: 14px !important;
}

.chiller-cat-header i.cat-icon {
    font-size: 15px;
    color: var(--primary-color);
    background: rgba(15, 107, 62, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.chiller-cat-header:hover i.cat-icon {
    background: var(--primary-color);
    color: #fff;
}

.chiller-cat-header .cat-info {
    display: flex;
    flex-direction: column;
}

.chiller-cat-header .cat-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
}

.chiller-cat-header .cat-badge {
    font-size: 10px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1px;
    letter-spacing: 0.3px;
}

/* Scrollable model list inside each column */
.chiller-cat-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
    padding: 6px 0;
    max-height: 300px;
}

.chiller-cat-list::-webkit-scrollbar {
    width: 4px;
}

.chiller-cat-list::-webkit-scrollbar-track {
    background: transparent;
}

.chiller-cat-list::-webkit-scrollbar-thumb {
    background: rgba(15, 107, 62, 0.15);
    border-radius: 10px;
}

.chiller-cat-list a {
    font-size: 12.5px !important;
    padding: 7px 14px !important;
    padding-left: 20px !important;
    color: var(--text-light) !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
    border-left: 2px solid transparent;
}

.chiller-cat-list a:hover {
    background: rgba(15, 107, 62, 0.06) !important;
    color: var(--primary-dark) !important;
    border-left-color: var(--primary-color) !important;
    padding-left: 22px !important;
}

.chiller-cat-list a::before {
    display: none !important;
}

/* Override mega-menu-right min-height for chiller to give full height */
.chiller-tab.show .chiller-category-grid {
    flex: 1;
}

/* ===== MOBILE CHILLER CATEGORY STYLES ===== */
.mob-chiller-category {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
}

.mob-chiller-cat-header {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 9px 12px !important;
    background: rgba(15, 107, 62, 0.06);
    border-left: 3px solid var(--primary-color) !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    color: var(--heading-color) !important;
    font-size: 13px !important;
    text-decoration: none;
    margin-bottom: 2px;
    transition: background 0.2s ease;
}

.mob-chiller-cat-header:hover {
    background: rgba(15, 107, 62, 0.1) !important;
}

.mob-chiller-cat-header i {
    color: var(--primary-color);
    font-size: 12px;
}

.mob-chiller-models {
    display: flex;
    flex-direction: column;
    padding-left: 14px;
    border-left: 1px dashed rgba(15, 107, 62, 0.2);
    margin-left: 10px;
    margin-bottom: 6px;
}