/**
 * TD Interactives - header overrides (loads after compiled SCSS)
 */

#sp-top-bar.td-top-bar {
    background: linear-gradient(90deg, #0a1a2e 0%, #0d2240 50%, #0a1628 100%) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 9px 0 !important;
    border-bottom: none !important;
}

#sp-top-bar.td-top-bar .td-top-bar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

#sp-top-bar.td-top-bar .td-top-bar-left { justify-self: start; }
#sp-top-bar.td-top-bar .td-top-bar-center { justify-self: center; }
#sp-top-bar.td-top-bar .td-top-bar-right { justify-self: end; }

#sp-top-bar.td-top-bar .td-top-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

#sp-top-bar.td-top-bar .td-top-icon { color: #0080ff; }

#sp-top-bar.td-top-bar ul.social-icons > li a {
    color: rgba(255, 255, 255, 0.8) !important;
}

#sp-header.td-header {
    background: #000 !important;
    height: auto !important;
    min-height: 72px;
    padding: 0 !important;
    box-shadow: none !important;
}

#sp-header.td-header .td-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

#sp-header.td-header .td-header-logo { flex: 0 0 auto; }
#sp-header.td-header .td-header-logo .logo-image { max-height: 52px; width: auto; }

#sp-header.td-header .td-header-nav {
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
}

#sp-header.td-header .td-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

#sp-header.td-header .td-header-actions-desktop {
    align-items: center;
    gap: 18px;
}

#sp-header.td-header .sp-megamenu-wrapper #offcanvas-toggler { display: none !important; }
#sp-header.td-header .spmenu-number { display: none !important; }

/* Hamburger: hidden on desktop, visible on tablet & mobile only */
#sp-header.td-header .td-mobile-menu-toggler {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    text-decoration: none !important;
    flex-shrink: 0;
}

#sp-header.td-header .td-mobile-menu-toggler::after {
    display: none !important;
    content: none !important;
}

#sp-header.td-header .td-mobile-menu-toggler .burger-icon > span {
    background-color: #fff;
    height: 2px;
    margin: 5px 0;
    display: block;
}

@media (max-width: 991.98px) {
    #sp-header.td-header .td-mobile-menu-toggler {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    #sp-header.td-header .td-header-inner {
        min-height: 60px;
        gap: 12px;
    }

    #sp-header.td-header .td-header-logo .logo-image {
        max-height: 42px;
    }
}

#sp-header.td-header .sp-megamenu-parent {
    float: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0;
}

#sp-header.td-header .sp-megamenu-parent > li {
    top: 0 !important;
}

#sp-header.td-header .sp-megamenu-parent > li > a,
#sp-header.td-header .sp-megamenu-parent > li > span {
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    padding: 24px 16px !important;
    line-height: 1.2 !important;
    position: relative;
    white-space: nowrap;
}

#sp-header.td-header .sp-megamenu-parent > li.active > a::after,
#sp-header.td-header .sp-megamenu-parent > li.current-item.active > a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    height: 2px;
    background: #0080ff;
    border-radius: 1px;
}

#sp-header.td-header .burger-icon > span { background-color: #fff; }

.td-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0080ff;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 11px 22px;
    border-radius: 50px;
    text-decoration: none !important;
    white-space: nowrap;
}

.td-search-toggle {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 17px;
    padding: 6px;
    cursor: pointer;
}

.td-search-dropdown { display: none; position: absolute; top: calc(100% + 14px); right: 0; min-width: 280px; background: #111; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 14px; z-index: 200; }
.td-search-dropdown.is-open { display: block; }
.td-search-toggle-wrap { position: relative; }

@media (min-width: 992px) {
    .td-footer .td-footer-container {
        max-width: var(--td-footer-max-width, 1380px);
        margin-left: auto;
        margin-right: auto;
        padding-left: 32px;
        padding-right: 32px;
    }

    .td-footer-main .row.td-footer-grid {
        display: grid;
        grid-template-columns: minmax(240px, 1.15fr) repeat(5, minmax(0, 1fr));
        gap: 32px 36px;
        align-items: start;
    }

    .td-footer-main .row.td-footer-grid > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
}

@media (min-width: 1200px) {
    .td-footer-main .row.td-footer-grid {
        gap: 36px 40px;
    }
}

@media (max-width: 991.98px) {
    #sp-top-bar.td-top-bar .td-top-bar-inner { grid-template-columns: 1fr 1fr; }
    #sp-top-bar.td-top-bar .td-top-bar-center { display: none; }
}
