/**
 * Footer Styles for BK Pilates Theme
 *
 * @package BK_Pilates
 */

.site-footer {
    background-color: #121212;
    color: #fff;
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 10;
    /*background-image:*/
    /*        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),*/
    /*        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);*/
    background-size: 20px 20px;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 30%, rgba(224, 163, 111, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(224, 163, 111, 0.05) 0%, transparent 50%);
    opacity: 0.5;
    z-index: 0;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2vw;
    position: relative;
    z-index: 1;
}

/* Мобільна версія до 768px */
@media (max-width: 767px) {
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        width: 100%;
        max-width: 400px;
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-column:first-child {
        order: -1;
    }

    /* Розміщення локацій в дві колонки */
    .footer-column:nth-child(2),
    .footer-column:nth-child(3) {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .footer-column:nth-child(2) .footer-location-item,
    .footer-column:nth-child(3) .footer-location-item {
        width: calc(50% - 10px);
        text-align: center;
    }
}

/* Десктоп версія */
@media (min-width: 768px) {
    .footer-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.footer-column {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

@media (max-width: 767px) {
    .footer-column {
        align-items: center;
    }
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-logo img,
.custom-logo-link img {
    max-width: 180px;
    height: auto;
}

.footer-about {
    text-align: center;
    max-width: 350px;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Social Media Icons */
.footer-social {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-social a:hover {
    background-color: rgba(224, 163, 111, 0.2);
    transform: translateY(-3px);
    border-color: rgba(224, 163, 111, 0.3);
}

.footer-social a i {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
}

/* Section Headers */
.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: rgba(224, 163, 111, 0.9);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 0.5rem;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, rgba(224, 163, 111, 0.9), transparent);
}

/* Location Items */
.footer-location-item {
    margin-bottom: 1rem;
    width: 100%;
}

.footer-location-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-location-item h4 a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-location-item h4 a:hover {
    color: rgba(224, 163, 111, 0.9);
}

.footer-location-item h4 a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: rgba(224, 163, 111, 0.9);
    transition: width 0.3s ease;
}

.footer-location-item h4 a:hover::after {
    width: 100%;
}

.footer-location-item p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Footer Bottom Section */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: rgba(224, 163, 111, 0.9);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: rgba(224, 163, 111, 0.9);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Анімація */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-column {
    animation: fadeInUp 0.6s ease forwards;
}