/*
 * Plik: footer.css
 * Opis: Style CSS dla stopki motywu ATFPRO
 */

.atfpro-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-family: var(--font-base);
}

.atfpro-footer__container {
    max-width: 80rem; /* 1280px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem; /* 24px */
    padding-right: 1.5rem; /* 24px */
}

.atfpro-footer__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem; /* 32px */
    margin-bottom: 1rem; /* 48px */
}

.atfpro-footer__section {
    margin-bottom: 2rem; /* 32px */
}

.atfpro-footer__logo-container h3 {
    color: var(--color-white);
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    margin-bottom: 1rem; /* 16px */
}

.atfpro-footer__logo {
    height: 2rem; /* 32px */
}

.atfpro-footer__description {
    color: var(--gray-300);
    margin-bottom: 1rem; /* 16px */
    line-height: 1.6;
}

.atfpro-footer__heading {
    color: var(--gray-200);
    font-size: 1.125rem; /* 18px */
    font-weight: 500;
    margin-bottom: 1rem; /* 16px */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.atfpro-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.atfpro-footer__list-item {
    margin-bottom: 0.5rem; /* 8px */
}

.atfpro-footer__list .menu-item a {
    color: var(--gray-230) !important;
    text-decoration: none !important;
    transition: color 0.3s;
}

.atfpro-footer__list .menu-item a:hover {
    color: var(--color-white) !important;
}

.atfpro-footer__toggle-icon {
    display: none; /* Ukryta na desktopie */
    width: 1em;
    height: 1em;
    border-top: 2px solid var(--color-white);
    border-right: 2px solid var(--color-white);
    transform: rotate(135deg);
    transition: transform 0.3s ease;
}

.atfpro-footer__heading.active .atfpro-footer__toggle-icon {
    transform: rotate(-45deg);
}

.atfpro-footer__bottom {
    border-top: 1px solid var(--gray-400);
    padding-top: 2rem; /* 32px */
}

.atfpro-footer__bottom-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.atfpro-footer__copyright {
    color: var(--gray-300);
    margin-bottom: 1rem; /* 16px */
    font-size: 0.875rem; /* 14px */
}

.atfpro-footer__bottom-logo-container {
    display: flex;
}

.atfpro-footer__bottom-logo {
    height: 2rem; /* 32px */
}

/* Responsive styles */
@media (min-width: 640px) {
    .atfpro-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .atfpro-footer__bottom-content {
        flex-direction: row;
        text-align: left;
    }
    .atfpro-footer__copyright {
        margin-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .atfpro-footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 639px) {
    .atfpro-footer__section {
        margin-bottom: 0;
        padding: 1rem 0;
    }
    .atfpro-footer__section:not(:first-child) {
        border-top: 1px solid var(--gray-400);
    }
    .atfpro-footer__heading {
        cursor: pointer;
        margin-bottom: 0;
    }
    .atfpro-footer__heading.active + .atfpro-footer__list {
        margin-top: 1rem;
    }
    .atfpro-footer__toggle-icon {
        display: inline-block;
    }
    .atfpro-footer__list {
        display: none; /* Domyślnie zwinięte */
    }
}
