/* =============================================================================
   Footer — shared base + per-variant styles
   ============================================================================= */

/* ── Base footer ─────────────────────────────────────────────────────────── */

.footer {
    width: 100%;
    background: var( --footer-bg, #1a1a1a );
    color: var( --footer-text, #e5e5e5 );
}

.footer__inner {
    padding: 3rem 1.5rem;
}

.footer a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ── Brand block (logo / site title) ─────────────────────────────────────── */

.footer__logo-link {
    display: inline-block;
}

.footer__logo {
    max-height: 48px;
    width: auto;
    display: block;
}

.footer__site-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ── Menus ───────────────────────────────────────────────────────────────── */

.footer__menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.footer__menu-list li a {
    display: inline-block;
    padding: 0.25rem 0;
}

.footer__column-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem;
    opacity: 0.75;
}

.footer__column .footer__menu-list {
    flex-direction: column;
    gap: 0.5rem;
}

/* ── Contact block ───────────────────────────────────────────────────────── */

.footer__contact {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer__contact p {
    margin: 0;
}

/* ── About / custom text blocks ──────────────────────────────────────────── */

.footer__about,
.footer__custom {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 360px;
    margin-top: 1rem;
    opacity: 0.85;
}

/* ── Bottom bar (copyright + socials) ────────────────────────────────────── */

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba( 255, 255, 255, 0.1 );
    font-size: 0.85rem;
}

.footer__copyright {
    margin: 0;
    opacity: 0.75;
}

/* ── Social icons ────────────────────────────────────────────────────────── */

.footer__socials {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
}

.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.footer__social-link:hover {
    background: rgba( 255, 255, 255, 0.08 );
    opacity: 1;
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ── Disclaimer block (shared across variants) ───────────────────────────── */

.footer__disclaimer {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba( 255, 255, 255, 0.05 );
    font-size: 0.75rem;
    opacity: 0.6;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__disclaimer-text p {
    margin: 0 0 0.4rem;
}

.footer__disclaimer-text p:last-child {
    margin-bottom: 0;
}

.footer__disclaimer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.footer__disclaimer-link-item {
    display: inline-flex;
    align-items: center;
}

.footer__disclaimer-link-item:not(:last-child)::after {
    content: "|";
    margin: 0 0.75rem;
    opacity: 0.4;
}

.footer__disclaimer-link-item a {
    text-decoration: none;
}

.footer__disclaimer-link-item a:hover {
    text-decoration: underline;
}

/* =============================================================================
   Variant — Simple
   ============================================================================= */

.footer--simple .footer__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.footer--simple .footer__menu-list {
    justify-content: center;
}

.footer--simple .footer__bottom {
    width: 100%;
    justify-content: space-between;
}

/* =============================================================================
   Variant — Multi-Column
   ============================================================================= */

.footer__columns {
    display: grid;
    gap: 3rem;
    margin-bottom: 0;
}

.footer__columns--2 { grid-template-columns: repeat( 2, 1fr ); }
.footer__columns--3 { grid-template-columns: repeat( 3, 1fr ); }
.footer__columns--4 { grid-template-columns: repeat( 4, 1fr ); }

.footer__column {
    display: flex;
    flex-direction: column;
}

.footer__column--brand {
    gap: 0.5rem;
}

/* ── Mobile — stack everything ───────────────────────────────────────────── */

@media ( max-width: 768px ) {

    .footer__columns--2,
    .footer__columns--3,
    .footer__columns--4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
        text-align: left;
    }

    .footer--simple .footer__bottom {
        align-items: center;
    }

}
