/**
 * Footer Styles
 * 
 * @package SKOF_Theme
 */

.site-footer {
    background-color: #1a2332;
    color: #ecf0f1;
    margin-top: var(--spacing-xl);
}

/* Footer Links - General */
.site-footer a {
    color: var(--color-primary); /* Light green provides good contrast on dark bg */
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
}

/* Footer Main Section */
.footer-main {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 50px;
    align-items: start;
}

/* Footer Logo Section */
.footer-logo-section {
    max-width: 350px;
}

.footer-branding-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo img,
.footer-logo .custom-logo {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    display: block;
}

.footer-logo a {
    display: block;
    line-height: 0;
}

.footer-identity {
    display: flex;
    flex-direction: column;
}

.footer-site-title {
    margin-bottom: 5px;
}

.footer-site-title a {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-primary);
    line-height: 1.2;
}

.footer-site-title a:hover {
    color: var(--color-primary);
}

.footer-tagline {
    margin: 0;
    font-size: 0.85rem;
    color: #b0b8c0;
    line-height: 1.4;
}

/* Footer Info Columns */
.footer-info-column {
    
}

.footer-column-title {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-info-item {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-label {
    font-size: 0.8rem;
    color: #95a5a6;
}

.footer-info-item a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    min-height: 48px;
    min-width: 48px;
    padding: 12px 8px;
    margin: 4px 0;
    line-height: 1.5;
}

.footer-info-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-info-item span {
    color: #ecf0f1;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer Social Section */
.footer-social-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Widgets */
.footer-widgets {
    background-color: rgba(0,0,0,0.15);
    padding: var(--spacing-xl) 0;
    display: none; /* Hidden by default, show if widgets are active */
}

.site-footer .footer-widgets:not(:empty) {
    display: block;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-widget-column {
    /* Column styles */
}

.footer-widget .widget-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-widget a:hover {
    color: var(--color-primary);
}
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-widget-column {
    /* Column styles */
}

.footer-widget .widget-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-widget a:hover {
    color: var(--color-primary);
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #bdc3c7;
}

.footer-navigation {
    /* Navigation styles */
}

.footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-menu li a {
    color: #ecf0f1;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-menu li a:hover {
    color: var(--color-primary);
}

.footer-credits {
    font-size: 0.8125rem;
    color: #95a5a6;
}

.footer-credits a {
    color: inherit;
    text-decoration: none;
}

.footer-credits a:hover {
    color: var(--color-primary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-secondary);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-logo-section {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-branding-wrapper {
        justify-content: center;
    }
    
    .footer-identity {
        text-align: center;
    }
    
    .footer-logo img,
    .footer-logo .custom-logo {
        margin: 0 auto;
    }
    
    .footer-social-section {
        grid-column: 1 / -1;
        align-items: center;
    }
    
    .footer-social-links {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    
    .footer-branding-wrapper {
        justify-content: center;
        gap: 12px;
    }
    
    .footer-logo img,
    .footer-logo .custom-logo {
        max-width: 80px;
        max-height: 80px;
    }
    
    .footer-identity {
        text-align: left;
    }
    
    .footer-site-title a {
        font-size: 1rem;
    }
    
    .footer-tagline {
        font-size: 0.75rem;
    }
    
    .footer-info-column {
        text-align: center;
    }
    
    .footer-info-item {
        align-items: center;
    }
    
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-menu {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-column-title {
        font-size: 0.9rem;
    }
    
    .footer-info-item {
        font-size: 0.9rem;
    }
}
