/* ==========================================================================
   Custom Footer — bs-footer.css
   All styles scoped under #bs-custom-footer to avoid conflicts.
   Mobile-first: base = mobile, @media (min-width: 1025px) = desktop.
   ========================================================================== */

/* ---------- Full-width fix: Elementor shortcode widget doesn't stretch ---------- */
.e-con:has(#bs-custom-footer) > .elementor-widget-shortcode {
    width: 100%;
}

/* ---------- CSS Custom Properties ---------- */
#bs-custom-footer {
    --ftr-bg: #1a1d28;
    --ftr-text: #a0a4b4;
    --ftr-heading: #e8e8e8;
    --ftr-accent: #22d3a7;
    --ftr-accent-hover: #1bb892;
    --ftr-border: rgba(255, 255, 255, 0.08);
    --ftr-link-hover: #ffffff;
    --ftr-transition: 0.15s ease;
}

#bs-custom-footer *,
#bs-custom-footer *::before,
#bs-custom-footer *::after {
    box-sizing: border-box;
}

#bs-custom-footer {
    background: var(--ftr-bg);
    color: var(--ftr-text);
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- Inner container ---------- */
#bs-custom-footer .bs-ftr-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 20px 32px;
}

/* ---------- Brand column ---------- */
#bs-custom-footer .bs-ftr-brand {
    margin-bottom: 32px;
}

#bs-custom-footer .bs-ftr-logo {
    display: inline-block;
    text-decoration: none;
}

#bs-custom-footer .bs-ftr-logo img {
    height: 32px;
    width: auto;
    display: block;
}

#bs-custom-footer .bs-ftr-tagline {
    color: var(--ftr-text);
    font-size: 13px;
    margin: 12px 0 0;
    line-height: 1.5;
}

/* ---------- Social icons ---------- */
#bs-custom-footer .bs-ftr-social {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

#bs-custom-footer a.bs-ftr-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ftr-border);
    color: var(--ftr-text);
    text-decoration: none;
    transition: border-color var(--ftr-transition), color var(--ftr-transition), background var(--ftr-transition);
}

#bs-custom-footer a.bs-ftr-social-link:hover {
    border-color: var(--ftr-accent);
    color: var(--ftr-accent);
    background: rgba(34, 211, 167, 0.08);
}

#bs-custom-footer .bs-ftr-social-link svg {
    width: 18px;
    height: 18px;
}

/* ---------- Link columns (mobile: accordion) ---------- */
#bs-custom-footer .bs-ftr-columns {
    display: flex;
    flex-direction: column;
}

#bs-custom-footer .bs-ftr-col {
    border-bottom: 1px solid var(--ftr-border);
}

/* Desktop titles hidden on mobile */
#bs-custom-footer .bs-ftr-col-title {
    display: none;
}

/* Mobile toggle buttons */
#bs-custom-footer .bs-ftr-col-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: var(--ftr-heading);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    padding: 16px 0;
    cursor: pointer;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
    transition: color var(--ftr-transition);
}

#bs-custom-footer .bs-ftr-col-toggle:active {
    color: var(--ftr-accent);
}

#bs-custom-footer .bs-ftr-col-toggle svg {
    transition: transform 0.2s ease;
    opacity: 0.4;
    flex-shrink: 0;
}

#bs-custom-footer .bs-ftr-col-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
    opacity: 0.7;
}

#bs-custom-footer .bs-ftr-col-toggle[aria-expanded="true"] {
    color: var(--ftr-accent);
}

/* Link list (collapsed on mobile) */
#bs-custom-footer .bs-ftr-col-links {
    list-style: none;
    margin: 0;
    padding: 0 0 12px;
    display: none;
}

#bs-custom-footer .bs-ftr-col-links[aria-hidden="false"] {
    display: block;
}

#bs-custom-footer .bs-ftr-col-links li {
    margin: 0;
    padding: 0;
}

#bs-custom-footer .bs-ftr-col-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ftr-text);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 4px;
    border-radius: 6px;
    transition: color var(--ftr-transition), background var(--ftr-transition);
}

#bs-custom-footer .bs-ftr-col-links a:hover {
    color: var(--ftr-link-hover);
    background: rgba(255, 255, 255, 0.04);
}

#bs-custom-footer .bs-ftr-col-links a:hover .bs-ftr-icon {
    color: var(--ftr-accent);
}

/* Lucide icons in links */
#bs-custom-footer .bs-ftr-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #6b6f80;
    transition: color var(--ftr-transition);
}

#bs-custom-footer .bs-ftr-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

/* ---------- Disclaimer ---------- */
#bs-custom-footer .bs-ftr-disclaimer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 24px;
    border-top: 1px solid var(--ftr-border);
}

#bs-custom-footer .bs-ftr-disclaimer p {
    color: #6b6f80;
    font-size: 12px;
    line-height: 1.6;
    margin: 24px 0 0;
}

/* ---------- Legal bar ---------- */
#bs-custom-footer .bs-ftr-legal {
    border-top: 1px solid var(--ftr-border);
    padding: 20px 0;
}

#bs-custom-footer .bs-ftr-legal-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

#bs-custom-footer .bs-ftr-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
    margin-bottom: 12px;
}

#bs-custom-footer .bs-ftr-legal-links a {
    color: #6b6f80;
    text-decoration: none;
    font-size: 12px;
    transition: color var(--ftr-transition);
    white-space: nowrap;
}

#bs-custom-footer .bs-ftr-legal-links a:hover {
    color: var(--ftr-link-hover);
}

#bs-custom-footer .bs-ftr-legal-sep {
    color: #3a3d4a;
    margin: 0 8px;
    font-size: 12px;
}

#bs-custom-footer .bs-ftr-copyright {
    color: #6b6f80;
    font-size: 12px;
}

/* ==========================================================================
   Desktop (>=1025px)
   ========================================================================== */
@media (min-width: 1025px) {
    #bs-custom-footer .bs-ftr-inner {
        display: flex;
        gap: 48px;
        padding: 56px 20px 40px;
    }

    /* Brand column: fixed width */
    #bs-custom-footer .bs-ftr-brand {
        flex: 0 0 240px;
        margin-bottom: 0;
    }

    #bs-custom-footer .bs-ftr-logo img {
        height: 36px;
    }

    /* Link columns: 4-col grid */
    #bs-custom-footer .bs-ftr-columns {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }

    #bs-custom-footer .bs-ftr-col {
        border-bottom: none;
    }

    /* Show desktop titles, hide mobile toggles */
    #bs-custom-footer .bs-ftr-col-title {
        display: block;
        color: var(--ftr-heading);
        font-size: 14px;
        font-weight: 600;
        margin: 0 0 16px;
        letter-spacing: -0.01em;
    }

    #bs-custom-footer .bs-ftr-col-toggle {
        display: none;
    }

    /* Always show links on desktop */
    #bs-custom-footer .bs-ftr-col-links {
        display: block;
    }

    #bs-custom-footer .bs-ftr-col-links a {
        font-size: 13px;
        padding: 6px 4px;
    }

    /* Legal bar: flex row */
    #bs-custom-footer .bs-ftr-legal-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #bs-custom-footer .bs-ftr-legal-links {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   Tablet (768px - 1024px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    #bs-custom-footer .bs-ftr-columns {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 32px;
    }

    #bs-custom-footer .bs-ftr-brand {
        text-align: center;
    }

    #bs-custom-footer .bs-ftr-social {
        justify-content: center;
    }
}

/* ==========================================================================
   Print: hide footer
   ========================================================================== */
@media print {
    #bs-custom-footer {
        display: none;
    }
}
