/* ========================================
   FOOTER COMPONENT
   ======================================== */

.footer {
    position: relative;
    background: #4F203E;
    border: 3px solid rgba(79, 32, 63, 0.1);
    border-radius: 32px;
    padding: 48px;
    margin: 80px auto 24px;
    width: 1312px;
    max-width: calc(100% - 48px);
    height: 600px;
    color: #FDFAF1;
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
}

[data-theme="dark"] .footer {
    background: #200E1C;
    border-color: var(--color-border);
}

/* ========== Background watermark ========== */

.footer__bg-text {
    position: absolute;
    left: -5px;
    bottom: -2px;
    width: 505px;
    height: 400px;
    pointer-events: none;
    z-index: 0;
}

/* ========== Main content wrapper ========== */

.footer__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
}

/* ========== Top section ========== */

.footer__top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 135px;
}

.footer__brand {
    flex: 0 0 252px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.footer__logo {
    height: 35px;
    width: auto;
    display: block;
}

.footer__tagline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    color: #FDFAF1;
}

/* ========== Nav columns ========== */

.footer__nav {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 72px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 6px;
}

.footer__col-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 120%;
    color: #FDFAF1;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    color: #FDFAF1;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer__link:hover {
    opacity: 1;
}

/* ========== Bottom bar ========== */

.footer__bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer__bottom-left {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    color: #FDFAF1;
}

.footer__bottom-center {
    display: flex;
    align-items: center;
}

.footer__accessibility-badge {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 120%;
    color: #FDFAF1;
    opacity: 0.6;
    border: 1px solid rgba(253, 250, 241, 0.25);
    border-radius: 20px;
    padding: 6px 14px;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.footer__accessibility-badge:hover {
    opacity: 1;
}

.footer__bottom-right {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    color: #FDFAF1;
    display: flex;
    gap: 16px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
    .footer {
        height: auto;
        width: auto;
        max-width: calc(100% - 48px);
        padding: 40px 36px;
    }

    .footer__top {
        gap: 48px;
    }

    .footer__nav {
        gap: 32px;
        flex-wrap: wrap;
    }

    .footer__col-title {
        font-size: 20px;
    }

    .footer__link {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 32px 20px;
        margin: 40px 16px 16px;
        max-width: calc(100% - 32px);
        border-radius: 24px;
    }

    .footer__container {
        gap: 36px;
    }

    .footer__top {
        flex-direction: column;
        gap: 28px;
    }

    .footer__brand {
        flex: none;
    }

    .footer__tagline {
        font-size: 15px;
    }

    .footer__nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer__col {
        padding: 0;
    }

    .footer__col-title {
        font-size: 18px;
    }

    .footer__link {
        font-size: 15px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer__bottom-left,
    .footer__bottom-right {
        font-size: 14px;
    }

    .footer__bg-text {
        width: 300px;
        height: 240px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 24px 16px;
        margin: 24px 12px 12px;
        max-width: calc(100% - 24px);
        border-radius: 20px;
    }

    .footer__container {
        gap: 28px;
    }

    .footer__bg-text {
        width: 220px;
        height: 180px;
    }

    .footer__tagline {
        font-size: 14px;
    }

    .footer__nav {
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
    }

    .footer__col-title {
        font-size: 15px;
    }

    .footer__link {
        font-size: 13px;
    }

    .footer__col {
        gap: 12px;
    }

    .footer__list {
        gap: 8px;
    }

    .footer__bottom {
        gap: 10px;
    }

    .footer__bottom-left,
    .footer__bottom-right {
        font-size: 12px;
    }

    .footer__bottom-right {
        flex-direction: column;
        gap: 4px;
    }

    .footer__accessibility-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    .footer__logo {
        height: 28px;
    }
}
