/**
 * Naturholz Footer Styles
 * 
 * Complete footer styling separated from main style.css
 *
 * @package Naturholz
 * @version 2.0.0
 */

/* ==========================================================================
   Footer Base
   ========================================================================== */

.site-footer {
    background: var(--color-primary-dark, #3E2723);
    color: var(--color-white, #fff);
    padding: 4rem 0 0;
}

.site-footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Footer Logo & About Section
   ========================================================================== */

.footer-logo-section {
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
}

.footer-logo {
    display: block;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1); /* Make logo white */
}

.footer-about {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Footer Widgets / Columns
   ========================================================================== */

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

.footer-widget {
    /* Individual widget column */
}

.footer-widget .widget-title,
.footer-widget h4 {
    color: var(--color-white, #fff);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent, #8B5A2B);
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-widget a:hover {
    color: var(--color-white, #fff);
}

/* ==========================================================================
   Contact Info
   ========================================================================== */

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.contact-info a:hover {
    color: #fff;
}

/* ==========================================================================
   Social Links
   ========================================================================== */

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Trust Badges
   ========================================================================== */

.footer-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.footer-badges img {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-badges img:hover {
    opacity: 1;
}

/* ==========================================================================
   Payment Methods
   ========================================================================== */

.footer-payment {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.payment-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.payment-icons img {
    height: 28px;
    width: auto;
    opacity: 0.8;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.payment-icons img:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-payment {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .payment-icons {
        width: 100%;
    }
}

/* ==========================================================================
   Footer Bottom (Copyright & Legal)
   ========================================================================== */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--color-primary, #5D4037);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-dark, #3E2723);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 1024px) {
    .site-footer .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0 0;
    }
    
    .site-footer .container {
        padding: 0 1rem;
    }
    
    .footer-logo-section {
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-widgets {
        gap: 2rem;
        padding-bottom: 2rem;
    }
    
    .footer-widget {
        text-align: left;
    }
    
    .footer-payment {
        padding: 1.5rem 0;
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-footer,
    .back-to-top {
        display: none !important;
    }
}