/* ============================================================
   TRUISTT BANK — truistt.css
   ============================================================ */

/* === SKIP LINK === */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #0d52a0;
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    font-size: 14px;
    border-radius: 0 0 8px 0;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* === NAV GLASSMORPHISM === */
.glass-nav {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.3s;
}

.glass-panel-dark {
    background: rgba(7, 26, 54, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* === DESKTOP MEGA MENUS === */
.mega-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 200;
}

.nav-item.is-open .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-item.is-open .chevron-icon {
    transform: rotate(180deg);
}

/* === TOPBAR MORE DROPDOWN === */
.more-wrapper { position: relative; }

.more-dropdown {
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.more-wrapper.is-open .more-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === PRODUCT CARDS === */
.product-card {
    flex-direction: column;
    cursor: pointer;
}

/* === MINI CARDS === */
.mini-card {
    display: flex;
    flex-direction: column;
}

/* === DISCLOSURE SECTION === */
.disclosure-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.disclosure-btn[aria-expanded="true"] .disc-chevron {
    transform: rotate(180deg);
}

/* === VIDEO SECTION === */
#videoPreview { cursor: pointer; }

/* === MOBILE OVERLAY === */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 26, 54, 0.6);
    backdrop-filter: blur(4px);
    z-index: 149;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === MOBILE SIDEBAR === */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    max-width: 85vw;
    background: linear-gradient(160deg, #0a2240 0%, #071a36 100%);
    z-index: 150;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

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

.sidebar-links {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.sidebar-links::-webkit-scrollbar { width: 4px; }
.sidebar-links::-webkit-scrollbar-track { background: transparent; }
.sidebar-links::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* Sidebar Accordion */
.sidebar-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-accordion-btn {
    width: 100%;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.sidebar-accordion-btn:hover,
.sidebar-accordion-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.sidebar-accordion-btn[aria-expanded="true"] .sidebar-chevron {
    transform: rotate(180deg);
}

.sidebar-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-accordion-content.is-open {
    max-height: 600px;
}

.sidebar-accordion-content a {
    display: block;
    padding: 10px 20px 10px 28px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
}

.sidebar-accordion-content a:hover {
    color: #38bdf8;
    background: rgba(255, 255, 255, 0.04);
    padding-left: 32px;
}

/* Flat sidebar link */
.sidebar-flat-link {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.2s, color 0.2s;
}

.sidebar-flat-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

/* === STICKY OPEN ACCOUNT (mobile) === */
.sticky-open-account {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    font-family: 'Inter', sans-serif;
}

.sticky-menu {
    background: #071a36;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.sticky-menu.active {
    max-height: 400px;
}

.sticky-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s;
}

.sticky-menu a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.sticky-btn {
    width: 100%;
    background: #0d52a0;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sticky-btn:hover { background: #071a36; }

.sticky-btn[aria-expanded="true"] .sticky-chevron {
    transform: rotate(180deg);
}

/* === FOOTER ACCORDION (mobile) === */
@media (max-width: 1023px) {
    .footer-links-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .footer-col.is-open .footer-links-list {
        max-height: 400px;
    }

    .footer-col.is-open .footer-chevron {
        transform: rotate(180deg);
    }

    .footer-accordion-header {
        padding-bottom: 8px;
        margin-bottom: 0 !important;
    }
}

/* === NO SCROLLBAR === */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }