/*
 * Styles for the Main Site Footer
 * VERSION 3.0: Removed Country Selector.
 */

.site-footer {
    background-color: var(--py-secondary-color);
    color: #e2e8f0;
    padding: 60px 0 30px;
    margin-top: 40px;
}

/* ==========================================================================
   1. 4-Column Widget Grid
   ========================================================================== */
.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid #2d3748;
    padding-bottom: 40px;
}

.footer-widget .widget-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--py-primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: #a0aec0;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-widget ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* ==========================================================================
   2. Footer Bottom Bar (Copyright)
   ========================================================================== */
.footer-bottom-bar {
    display: flex;
    justify-content: center; /* Centered since country selector is gone */
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 10px;
}

.site-info {
    text-align: center;
    font-size: 14px;
    color: #718096;
}

.site-info p {
    margin: 0 0 5px 0;
}

.site-info .footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-info .footer-links a {
    color: #718096;
    text-decoration: none;
}

.site-info .footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ==========================================================================
   3. Back to Top Button Styles
   ========================================================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--py-primary-color);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 995;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-size: 18px;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--py-primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* ==========================================================================
   4. Responsive Adjustments
   ========================================================================== */
@media (max-width: 992px) {
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}