/* ============================================================
   PGD Footer
   ============================================================ */

.pgd-footer,
.pgd-footer * {
    box-sizing: border-box !important;
}

.pgd-footer {
    width: 100% !important;
    background: #ffffff !important;
    color: #0B457F !important;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif !important;
    padding: 60px 24px 0 !important;
}

.pgd-footer__inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
}

/* ============================================================
   TOP — 4 kolumny
   ============================================================ */
.pgd-footer__top {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 40px !important;
    padding-bottom: 40px !important;
}

.pgd-footer__col {
    min-width: 0 !important;
}

/* Tytuły kolumn */
.pgd-footer__title {
    margin: 0 0 20px !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    color: #0B457F !important;
    line-height: 1 !important;
    cursor: default !important;
    list-style: none !important;
}

/* Wyłącz natywny chevron <summary> na desktop */
.pgd-footer__title::-webkit-details-marker {
    display: none !important;
}
.pgd-footer__title::marker {
    display: none !important;
    content: '' !important;
}

/* Details na desktop — zawsze otwarty, bez interakcji */
.pgd-footer__col--links {
    /* Resetujemy domyślne open/closed; CSS sterowany media query */
}

/* Opis w pierwszej kolumnie */
.pgd-footer__text {
    margin: 0 0 24px !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
    color: #0B457F !important;
    max-width: 360px !important;
}

/* Przycisk kontakt */
.pgd-footer__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 36px !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: #0B457F !important;
    text-decoration: none !important;
    border: 1.5px solid #0B457F !important;
    border-radius: 100px !important;
    background: transparent !important;
    transition: background .2s ease, color .2s ease !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.pgd-footer__btn:hover {
    background: #0B457F !important;
    color: #ffffff !important;
}

/* Desktop: <details> zachowuje się jak zwykły kontener — lista zawsze widoczna */
@media (min-width: 901px) {
    .pgd-footer__col--links .pgd-footer__list {
        display: flex !important;
    }
    .pgd-footer__col--links .pgd-footer__title {
        pointer-events: none !important;
    }
}

/* Listy linków */
.pgd-footer__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.pgd-footer__list-item {
    margin: 0 !important;
    padding: 0 !important;
}

.pgd-footer__link {
    font-family: "Montserrat", sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #0B457F !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    transition: opacity .2s ease !important;
    display: inline-block !important;
}

.pgd-footer__link:hover {
    opacity: .6 !important;
    text-decoration: none !important;
}

/* ============================================================
   MIDDLE — social + credit
   ============================================================ */
.pgd-footer__middle {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 24px 0 !important;
    border-top: 1px solid #e5e7eb !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.pgd-footer__social {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.pgd-footer__social-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    transition: opacity .2s ease, transform .2s ease !important;
    text-decoration: none !important;
}

.pgd-footer__social-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.pgd-footer__social-icon:hover {
    opacity: .75 !important;
    transform: translateY(-2px) !important;
}

.pgd-footer__social-label {
    margin-left: 8px !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: #0B457F !important;
}

.pgd-footer__credit {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 12px !important;
    color: #0B457F !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

.pgd-footer__credit-label {
    opacity: .7 !important;
}

.pgd-footer__credit-link {
    font-weight: 700 !important;
    color: #0B457F !important;
    text-decoration: none !important;
    transition: opacity .2s ease !important;
}

.pgd-footer__credit-link:hover {
    opacity: .7 !important;
    text-decoration: none !important;
}

/* ============================================================
   BOTTOM — copyright
   ============================================================ */
.pgd-footer__bottom {
    padding: 20px 0 24px !important;
    border-top: 1px solid #e5e7eb !important;
    text-align: center !important;
}

.pgd-footer__copyright {
    margin: 0 !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 12px !important;
    color: #0B457F !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    opacity: .75 !important;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
    .pgd-footer {
        padding: 40px 20px 0 !important;
    }

    .pgd-footer__top {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding-bottom: 16px !important;
    }

    .pgd-footer__col--brand {
        margin-bottom: 24px !important;
    }

    .pgd-footer__text {
        max-width: 100% !important;
    }

    /* ACCORDION — kolumny linków */
    .pgd-footer__col--links {
        border-top: 1px solid #e5e7eb !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pgd-footer__col--links .pgd-footer__title {
        margin: 0 !important;
        padding: 18px 36px 18px 0 !important;
        cursor: pointer !important;
        position: relative !important;
        user-select: none !important;
        outline: none !important;
    }

    /* Chevron */
    .pgd-footer__col--links .pgd-footer__title::after {
        content: '' !important;
        position: absolute !important;
        right: 4px !important;
        top: 50% !important;
        width: 10px !important;
        height: 10px !important;
        border-right: 2px solid #0B457F !important;
        border-bottom: 2px solid #0B457F !important;
        transform: translateY(-75%) rotate(45deg) !important;
        transition: transform .25s ease !important;
    }

    .pgd-footer__col--links[open] .pgd-footer__title::after {
        transform: translateY(-25%) rotate(225deg) !important;
    }

    /* Lista linków pod tytułem — odstęp */
    .pgd-footer__col--links .pgd-footer__list {
        padding: 0 0 18px !important;
    }
}

@media (max-width: 540px) {
    .pgd-footer__middle {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 16px !important;
        padding: 24px 0 !important;
    }

    .pgd-footer__social {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .pgd-footer__credit {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .pgd-footer__bottom {
        text-align: center !important;
        padding: 20px 0 24px !important;
        /* Separator między social/credit a copyright (już z border-top w bazie) */
    }

    .pgd-footer__copyright {
        text-align: center !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pgd-footer__btn,
    .pgd-footer__link,
    .pgd-footer__social-icon,
    .pgd-footer__credit-link {
        transition: none !important;
    }
}
