/*
 * Футер публічного сайту ПРОДу (getgrant.ua / getgrant.eu).
 * Формат і кольори = футер нового Astro-сайту (dev3.getgrant.ua, Footer.astro):
 * темно-синє тло #0D1B3E, брендова колонка + 4 колонки посилань, нижня смуга
 * з копірайтом, мовами і платіжними бейджами.
 *
 * Клас `footer` на елементі лишається заради main.js ($(".footer").offset()),
 * тому старі правила .footer з main.css перебиваємо селекторами footer.footer.ft.
 */

/* ── Оболонка ─────────────────────────────────── */
footer.footer.ft {
    background-color: #0D1B3E;
    color: rgba(255,255,255,.6);
    font-size: 14px;
    letter-spacing: 0;
    border-top: 1px solid rgba(255,255,255,.06);
}
footer.ft a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color .15s;
}
footer.ft a:hover { color: #fff; }
footer.ft ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Основна частина ──────────────────────────── */
.ft-main { padding: 4rem 0 3.5rem; }
.ft-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 260px repeat(4, 1fr);
    gap: 2.5rem;
    align-items: start;
}

/* ── Бренд ────────────────────────────────────── */
.ft-brand { text-align: center; }
.ft-logo-link {
    display: inline-block;
    margin-bottom: 1.1rem;
    text-decoration: none;
}
.ft-logo-link svg {
    height: 67px; /* dev3 має 48px, тут на 40% більше на прохання власника */
    width: auto;
    display: block;
    margin: 0 auto;
}
.ft-tagline {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    line-height: 1.65;
    margin: 0 auto 1.1rem;
    max-width: 200px;
}
.ft-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.55);
    margin-bottom: 1.5rem;
}

/* ── Соцмережі ────────────────────────────────── */
.ft-socials {
    display: flex;
    gap: .5rem;
    justify-content: center;
}
.ft-socials li { margin: 0; }
footer.ft .ft-soc {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s, border-color .15s;
    flex-shrink: 0;
}
footer.ft .ft-soc:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.22);
    color: #fff;
}
.ft-soc svg { display: block; }

/* ── Колонки посилань ─────────────────────────── */
.ft-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.35);
    margin: 0 0 1rem;
    opacity: 1;
}
.ft-col ul {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.ft-col ul li { margin: 0; }
footer.ft .ft-col ul a {
    font-size: 13.5px;
    color: rgba(255,255,255,.6);
    line-height: 1.4;
}
footer.ft .ft-col ul a:hover { color: #fff; }

/* контакти: адреса + пошта з ACF (grants_print_contact_info) */
.ft-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255,255,255,.6);
}
.ft-contacts .material-icons {
    font-size: 18px;
    line-height: 1.1;
    color: rgba(255,255,255,.35);
    flex-shrink: 0;
}
.ft-contacts .widget-contact-info { min-width: 0; }

/* ── Нижня смуга ──────────────────────────────── */
.ft-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 1.25rem 0;
}
.ft-bottom-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.ft-copy {
    font-size: 12.5px;
    color: rgba(255,255,255,.3);
}
.ft-bottom-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.ft-langs {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.ft-langs span,
.ft-langs a {
    display: flex;
    border-radius: 50%;
    overflow: hidden;
    line-height: 0;
}
.ft-langs img {
    width: 22px;
    height: 22px;
    display: block;
}
.ft-langs span img { opacity: 1; }
.ft-langs a img { opacity: .5; transition: opacity .15s; }
.ft-langs a:hover img { opacity: 1; }
.ft-payments {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.ft-pay-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    padding: 4px 10px;
    height: 28px;
    min-width: 52px;
}

/* ── Адаптив ──────────────────────────────────── */
@media (max-width: 1024px) {
    .ft-inner {
        grid-template-columns: 220px repeat(4, 1fr);
        gap: 2rem;
    }
}
@media (max-width: 860px) {
    .ft-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 3rem;
    }
    .ft-brand {
        grid-column: span 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .ft-tagline { max-width: 340px; }
}
@media (max-width: 560px) {
    .ft-main { padding: 2.5rem 0 2rem; }
    .ft-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; padding: 0 1.25rem; }
    .ft-bottom-inner {
        flex-direction: column;
        align-items: center;
        padding: 0 1.25rem;
        gap: .8rem;
        text-align: center;
    }
}
