/* 1. FOOTER BASE STYLING */

.site-footer.ch-brand-footer {
    width: 100%;
    background: linear-gradient(105deg, #8B24E9 0%, #087CDB 100%);
    color: #FFFFFF;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    font-family: inherit;
}

.ch-brand-footer,
.ch-brand-footer * {
    box-sizing: border-box;
}

.ch-brand-footer > .container {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    margin: 0 auto;
}

/* 2. FOOTER MAIN GRID */

.ch-brand-footer .footer-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(0, 0.8fr)
        minmax(0, 1.1fr)
        minmax(0, 0.9fr);
    align-items: start;
    gap: 42px;
    padding: 64px 0 48px;
}

.ch-brand-footer .footer-grid > * {
    min-width: 0;
}

/* 3. FOOTER BRAND INFORMATION */

.ch-brand-footer .footer-brand {
    min-width: 0;
}

.ch-brand-footer .ch-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    text-decoration: none;
}

.ch-brand-footer .ch-footer-logo img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex-shrink: 0;
}

.ch-brand-footer .ch-footer-logo span {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #FFFFFF;
}}

.ch-brand-footer .footer-brand p {
    max-width: 345px;
    margin: 0 0 14px;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.8;
}

/* 4. FOOTER CALL TO ACTION */

.ch-brand-footer .ch-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 20px;
    border-radius: 10px;
    background: #FFFFFF;
    color: #6326CB;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ch-brand-footer .ch-footer-cta:hover {
    color: #4B1DA9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(19, 25, 75, 0.2);
}

/* 5. FOOTER NAVIGATION COLUMNS */

.ch-brand-footer .footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.ch-brand-footer .footer-col h3 {
    margin: 5px 0 20px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
}

.ch-brand-footer .footer-col nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    width: 100%;
}

.ch-brand-footer .footer-col nav a {
    display: inline-block;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ch-brand-footer .footer-col nav a:hover {
    color: #FFF0A8;
}

/* 6. FOOTER BOTTOM BAR */

.ch-brand-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    font-size: 12px;
}

.ch-brand-footer .footer-bottom span {
    color: inherit;
}

/* 7. FOOTER ACCESSIBILITY */

.ch-brand-footer a:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 4px;
    border-radius: 3px;
}

/* 8. TABLET RESPONSIVE DESIGN */

@media (max-width: 900px) {

    .ch-brand-footer .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 38px;
        padding: 48px 0 36px;
    }

}

/* 9. MOBILE RESPONSIVE DESIGN */

@media (max-width: 540px) {

    .ch-brand-footer > .container {
        width: calc(100% - 32px);
    }

    .ch-brand-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 42px 0 34px;
    }

    .ch-brand-footer .ch-footer-logo img {
        width: 40px;
        height: 40px;
    }

    .ch-brand-footer .ch-footer-logo span {
        font-size: 20px;
    }

    .ch-brand-footer .footer-col h3 {
        margin-bottom: 14px;
    }

    .ch-brand-footer .footer-col nav {
        gap: 11px;
    }

    .ch-brand-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

}

/* 10. REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .ch-brand-footer .ch-footer-cta,
    .ch-brand-footer .footer-col nav a {
        transition: none;
    }

}

/* 11. COMPACT FOOTER SPACING */

.ch-brand-footer .footer-grid {
    padding-top: 30px;
    padding-bottom: 25px;
    gap: 32px;
}

.ch-brand-footer .ch-footer-logo {
    margin-bottom: 10px;
}

.ch-brand-footer .footer-brand p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.ch-brand-footer .ch-footer-cta {
    margin-top: 6px;
    padding: 10px 18px;
}

.ch-brand-footer .footer-col h3 {
    margin-top: 3px;
    margin-bottom: 12px;
}

.ch-brand-footer .footer-col nav {
    gap: 8px;
}

.ch-brand-footer .footer-bottom {
    padding-top: 15px;
    padding-bottom: 16px;
}

/* 12. COMPACT TABLET FOOTER */

@media (max-width: 900px) {

    .ch-brand-footer .footer-grid {
        padding-top: 28px;
        padding-bottom: 24px;
        gap: 25px;
    }

}

/* 13. COMPACT MOBILE FOOTER */

@media (max-width: 540px) {

    .ch-brand-footer .footer-grid {
        padding-top: 26px;
        padding-bottom: 22px;
        gap: 22px;
    }

    .ch-brand-footer .footer-col nav {
        gap: 7px;
    }

    .ch-brand-footer .footer-bottom {
        padding-top: 14px;
        padding-bottom: 16px;
    }

}
