/* Navbar CSS - Header, Mega-Menu & Mobile Navigation */

.site-header {
    background-color: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
}

.site-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Brand Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 3px;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Left aligned brand section */
.nav-left-section {
    display: flex;
    align-items: center;
    gap: 36px;
    height: 100%;
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    height: 100%;
    gap: 6px;
}

.nav-item {
    position: static;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    padding: 28px 12px;
    font-weight: 700;
    color: #032d60; /* Salesforce deep navy blue */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 1.15rem;
    transition: color 0.15s ease;
}

.nav-link:hover, 
.nav-item:hover > .nav-link {
    color: #0176d3; /* Salesforce light blue on hover */
}

.nav-link svg {
    width: 12px;
    height: 12px;
    color: #514f4d;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Salesforce Right Utilities Group */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.nav-contact-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    line-height: 1.35;
}

.nav-contact-link {
    font-size: 1.08rem;
    font-weight: 700;
    color: #032d60;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.nav-contact-link:hover {
    color: #0176d3;
}

.nav-contact-email {
    font-size: 0.98rem;
    font-weight: 600;
    color: #514f4d;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-contact-email:hover {
    color: #0176d3;
    text-decoration: underline;
}

.nav-globe-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #032d60;
    cursor: pointer;
    transition: color 0.15s ease;
}

.nav-globe-box:hover {
    color: #0176d3;
}

.nav-globe-box svg {
    width: 20px;
    height: 20px;
}

.nav-login-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #032d60;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-login-link:hover {
    color: #0176d3;
}

.nav-login-link svg {
    width: 18px;
    height: 18px;
    color: #032d60;
}

.nav-login-link:hover svg {
    color: #0176d3;
}

/* Salesforce Premium Orange Action CTA */
.btn-salesforce-green {
    background-color: #ea580c; /* HubNest primary accent orange */
    color: #ffffff;
    padding: 12px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-salesforce-green:hover {
    background-color: #d97706; /* Amber hover state */
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

/* Mega-Menu Dropdown Wrapper */
.mega-menu {
    position: absolute;
    top: 80px;
    left: 175px;
    transform: none;
    width: 720px;
    background-color: #fafbfc; /* Premium off-white container background */
    border: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-normal);
    z-index: 99;
}

/* Show mega-menu on item hover */
.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    top: 80px;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.03); /* subtle static border to outline card */
    border-left: 3px solid transparent;
    background-color: #ffffff; /* white background to stand out from off-white container */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.015); /* very soft static elevation shadow */
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.mega-menu-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}

.mega-menu-icon {
    width: 24px;
    height: 24px;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.mega-menu-explore {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 4px;
    display: inline-block;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

/* Statically apply very light brand backgrounds to mega-menu links */
.mega-menu-link.mega-menu-job-nest { background-color: #fdf8f6; }
.mega-menu-link.mega-menu-hrms { background-color: #f0fdf4; }
.mega-menu-link.mega-menu-crm { background-color: #f0f7ff; }
.mega-menu-link.mega-menu-calling { background-color: #fffaf0; }
.mega-menu-link.mega-menu-notification { background-color: #f0fdfa; }
.mega-menu-link.mega-menu-toll-free { background-color: #fff5f5; }
.mega-menu-link.mega-menu-meeting { background-color: #f0f9fa; }

/* Zoho-Style Product Accent Hover Effects */
.mega-menu-job-nest:hover { border-left-color: var(--color-product-job-nest) !important; background-color: var(--color-orange-tint); }
.mega-menu-job-nest:hover .explore-job-nest { color: var(--color-product-job-nest); }
.mega-menu-job-nest:hover .mega-menu-icon { color: var(--color-product-job-nest); }

.mega-menu-hrms:hover { border-left-color: var(--color-product-hrms) !important; background-color: #ecfdf5; }
.mega-menu-hrms:hover .explore-hrms { color: var(--color-product-hrms); }
.mega-menu-hrms:hover .mega-menu-icon { color: var(--color-product-hrms); }

.mega-menu-crm:hover { border-left-color: var(--color-product-crm) !important; background-color: var(--color-blue-tint); }
.mega-menu-crm:hover .explore-crm { color: var(--color-product-crm); }
.mega-menu-crm:hover .mega-menu-icon { color: var(--color-product-crm); }

.mega-menu-calling:hover { border-left-color: var(--color-product-cloud-calling) !important; background-color: var(--color-orange-tint); }
.mega-menu-calling:hover .explore-calling { color: var(--color-product-cloud-calling); }
.mega-menu-calling:hover .mega-menu-icon { color: var(--color-product-cloud-calling); }

.mega-menu-notification:hover { border-left-color: var(--color-product-notification) !important; background-color: #e6fdfa; }
.mega-menu-notification:hover .explore-notification { color: var(--color-product-notification); }
.mega-menu-notification:hover .mega-menu-icon { color: var(--color-product-notification); }

.mega-menu-toll-free:hover { border-left-color: var(--color-product-toll-free) !important; background-color: #fdf2f2; }
.mega-menu-toll-free:hover .explore-toll-free { color: var(--color-product-toll-free); }
.mega-menu-toll-free:hover .mega-menu-icon { color: var(--color-product-toll-free); }

.mega-menu-meeting:hover { border-left-color: var(--color-product-meeting) !important; background-color: #BFD4D9; }
.mega-menu-meeting:hover .explore-meeting { color: var(--color-product-meeting); }
.mega-menu-meeting:hover .mega-menu-icon { color: var(--color-product-meeting); }


.mega-menu-info {
    display: flex;
    flex-direction: column;
}

.mega-menu-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.mega-menu-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* User Actions buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-signin {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-signin:hover {
    color: var(--color-accent);
}

/* Mobile Toggle Hamburger button */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.burger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.burger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    transition: transform var(--transition-fast) ease, background-color var(--transition-fast) ease;
}

.burger-inner::before, .burger-inner::after {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    transition: transform var(--transition-fast) ease;
}

.burger-inner::before {
    top: -8px;
}

.burger-inner::after {
    bottom: -8px;
}

/* Hamburger active transformation */
.mobile-toggle.is-active .burger-inner {
    background-color: transparent;
}

.mobile-toggle.is-active .burger-inner::before {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.is-active .burger-inner::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-menu-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg-surface);
    box-shadow: var(--shadow-lg);
    z-index: 105;
    padding: 100px 32px 32px 32px;
    flex-direction: column;
    overflow-y: auto;
    transition: right var(--transition-normal);
}

.mobile-menu-drawer.is-open {
    right: 0;
    display: flex;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
    display: block;
    padding: 8px 0;
}

/* Mobile accordion/nested structures style */
.mobile-submenu-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    cursor: pointer;
}

.mobile-submenu {
    list-style: none;
    padding-left: 16px;
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.mobile-submenu.is-active {
    display: flex;
}

.mobile-submenu-link {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
    display: block;
}

.mobile-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 40px;
}

.mobile-actions .btn {
    width: 100%;
}

/* Progressive Fallback nav layout stylings */
.nav-fallback {
    display: flex;
    gap: 16px;
}

.nav-fallback a {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
}

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

/* Standard Dropdown Menu (Solutions/Industries) */
.dropdown-menu {
    position: absolute;
    top: 80px;
    left: 0;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 260px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast) ease-in-out;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: var(--color-bg-main);
    color: var(--color-accent);
}

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

/* Pricing Mega Menu Custom Styles */
.pricing-mega-menu {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.mega-menu-search-input {
    border: 1px solid var(--color-border);
    outline: none;
    transition: all var(--transition-fast) ease;
}

.mega-menu-search-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    background-color: #ffffff !important;
}

.pricing-mega-menu .mega-menu-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast) ease;
}

.pricing-mega-menu .mega-menu-item:hover {
    background-color: var(--color-bg-main);
}

/* Mega Menu Image Icons Styles */
.mega-menu-link img.mega-menu-icon {
    width: auto;
    max-width: 48px;
    height: 24px;
    object-fit: contain;
}

/* Solutions Column Combined Mega-Menu Styling */
.solutions-mega-menu {
    top: 80px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-normal);
}

.nav-item:hover .solutions-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    top: 80px;
}

.sol-item-link:hover {
    background-color: var(--color-orange-tint) !important;
    color: var(--color-accent) !important;
}

/* Temporarily hide pricing from UI */
.nav-item-pricing,
.mobile-nav-item-pricing {
    display: none !important;
}

/* Temporarily hide globe and login from UI */
.nav-globe-box,
.nav-login-link {
    display: none !important;
}


