/* ============================================
   HEADER
   ============================================ */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.header-wrapper.scrolled,
.header-wrapper:has(.nav-item:hover) {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border-color);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    transition: var(--transition);
    gap: 32px;
}

.header-wrapper.scrolled .header-main {
    height: 70px;
}

/* ---- Logo ---- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 32px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* ---- Nav Links ---- */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
    flex: 1;
}

.nav-item {
    position: static;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 48, 219, 0.04);
}

.nav-chevron {
    font-size: 10px;
    margin-top: 1px;
    transition: transform 0.25s ease;
}

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

/* ============================================
   PRODUCTS MEGA MENU
   ============================================ */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 36px 0 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    border-top: 1px solid var(--border-color);
}

.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.mega-group-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 700;
    padding: 0 14px;
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 2px;
}

.mega-item:hover {
    background: var(--bg-light);
}

.mega-item.featured .mega-content span {
    color: var(--primary-color);
}

.mega-icon {
    width: 34px;
    height: 34px;
    background: rgba(0, 48, 219, 0.06);
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.mega-content span {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
    font-size: 14px;
}

.mega-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============================================
   SOLUTIONS & RESOURCES DROPDOWN
   ============================================ */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(-4px);
    z-index: 100;
}

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

.dropdown-group {
    padding: 4px 0;
}

.dropdown-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 6px 10px 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.dropdown-item i {
    font-size: 13px;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-item:hover {
    background: rgba(0, 48, 219, 0.05);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* ============================================
   HEADER ACTIONS
   ============================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Sign In — utility link style */
.nav-sign-in {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-sign-in:hover {
    color: var(--primary-color);
    background: rgba(0, 48, 219, 0.04);
}

/* CTA Buttons */
.btn-cta {
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background: #0030DB;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #0025A8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 48, 219, 0.25);
}

.btn-outline {
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 48, 219, 0.04);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-main);
    margin-left: 4px;
    padding: 4px;
}

/* ============================================
   MOBILE GROUP LABELS
   ============================================ */
.mobile-group-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 12px 0 4px;
}

/* --- FOOTER --- */
footer {
    background: #000000 !important; /* Forces black background */
    color: #FFFFFF;
    padding: 100px 0 50px;
    border-top: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 80px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    text-decoration: none;
}

.footer-logo img {
    height: 30px;
    display: block;
}

.footer-logo-text {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
    font-size: 16px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: #FFFFFF;
}

.footer-cta-group {
    margin-top: 30px;
    display: flex;
    gap: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    color: #FFFFFF;
}

/* ============================================
   MOBILE NAV DRAWER
   ============================================ */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

/* ---- Drawer top bar ---- */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 68px;
    border-bottom: 1px solid #F0F0F0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #F5F5F7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #1D1D1F;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.mobile-nav-close:hover {
    background: #E8E8ED;
}

/* ---- Nav list ---- */
.mobile-nav-list {
    list-style: none;
    padding: 6px 0;
    flex: 1;
}

.mobile-nav-item {
    border-bottom: 1px solid #F5F5F7;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

/* Row (both clickable rows and plain links) */
.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #1D1D1F;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 0;
    gap: 8px;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 48, 219, 0.03);
}

.mobile-nav-link-plain {
    cursor: default;
}

/* Chevron icon */
.mobile-acc-icon {
    font-size: 11px;
    color: #94A3B8;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.mobile-acc-icon.open {
    transform: rotate(180deg);
}

/* ---- Accordion content ---- */
.mobile-accordion-content {
    display: none;
    padding: 4px 20px 14px;
    background: #FAFAFA;
    border-top: 1px solid #F0F0F0;
}

/* ---- Group labels ---- */
.mobile-group-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #94A3B8;
    padding: 14px 0 6px;
}

/* ---- Sub-links ---- */
.mobile-sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: #3D3D3F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-sub-link i {
    font-size: 13px;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.mobile-sub-link:hover {
    color: var(--primary-color);
    background: rgba(0, 48, 219, 0.05);
}

/* ---- Bottom CTA footer ---- */
.mobile-nav-footer {
    padding: 20px 20px 36px;
    border-top: 1px solid #F0F0F0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    background: #ffffff;
    position: sticky;
    bottom: 0;
}

.mobile-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0030DB;
    color: #ffffff;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-cta-primary:hover {
    background-position: right center;
    transform: translateY(-1px);
}

.mobile-cta-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-cta-secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #E5E5E5;
    color: #1D1D1F;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.mobile-cta-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-cta-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6E6E73;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-cta-text:hover {
    color: var(--primary-color);
    background: rgba(0, 48, 219, 0.04);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    /* Hide all right-side action buttons + sign in — only show hamburger */
    .nav-sign-in,
    .header-actions .btn-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-main {
        gap: 0;
    }

    /* Footer responsive */
    footer {
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .footer-brand p {
        margin: 0 auto;
    }
    .footer-cta-group {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}
