/* 
 * Custom Footer Styles - German Market Optimized
 * assets/css/custom-footer.css
 * Dostosowane do niemieckiego footer.php bez animacji
 */


/* Override Storefront default footer styles */
.site-footer {
    background: var(--ggsolutions-primary) !important;
    color: #ffffff !important;
    margin-top: 60px;
    border-top: 3px solid var(--ggsolutions-green);
    position: relative;
    overflow: hidden;
    padding: 0 !important;
}

.site-footer a {
    color: #ffffff !important;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(197, 232, 51, 0.02) 50%, transparent 100%);
    pointer-events: none;
}

/* Remove default Storefront footer styles */
.site-footer .col-full {
    display: none;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Sections */
.footer-section h4 {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 25px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--ggsolutions-green);
    transition: width 0.3s ease;
}

.footer-section:hover h4::after {
    width: 60px;
}

.footer-section h5 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin: 20px 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Footer Brand Section */
.footer-brand {
    position: relative;
}

.footer-brand .footer-logo {
    margin-bottom: 20px;
}

.footer-brand .footer-logo img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand .custom-logo-link {
    display: inline-block;
}

.footer-brand .custom-logo {
    max-height: 60px !important;
    width: auto !important;
    filter: brightness(0) invert(1);
}

.footer-brand .footer-logo.light-logo img,
.footer-brand .footer-logo.light-logo .custom-logo,
.footer-brand .footer-logo.custom-footer-logo img {
    filter: none !important;
}

.footer-site-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.footer-description,
.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-weight: 400;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.9;
}

/* Trust Badges */
.trust-badges {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.trust-stars {
    color: #ffd700;
    font-size: 16px;
}

.trust-icon {
    font-size: 16px;
}

.trust-text {
    font-weight: 500;
}

/* Contact Section */
.footer-contact {
    position: relative;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ggsolutions-green);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-text {
    flex: 1;
    line-height: 1.5;
}

.contact-text a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.contact-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ggsolutions-green);
    transition: width 0.3s ease;
}

.contact-text a:hover::after {
    width: 100%;
}

.contact-text a:hover {
    color: var(--ggsolutions-green);
}

.contact-hours {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

/* Shipping Info */
.shipping-info {
    margin-top: 30px;
}

.shipping-icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shipping-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.shipping-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Service Section */
.footer-service {
    position: relative;
}

.footer-service-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-service-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: block;
    padding: 6px 0;
    position: relative;
    transition: all 0.3s ease;
}

.footer-service-menu li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    color: var(--ggsolutions-green);
    font-weight: bold;
    transition: all 0.3s ease;
}

.footer-service-menu li a:hover {
    color: var(--ggsolutions-green);
    padding-left: 10px;
}

.footer-service-menu li a:hover::before {
    opacity: 1;
}

/* Payment Methods */
.payment-methods {
    margin-top: 25px;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.payment-icon:hover {
    background: rgba(197, 232, 51, 0.2);
    color: var(--ggsolutions-green);
}

/* Legal Section */
.footer-legal {
    position: relative;
}

.footer-legal-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-legal-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: block;
    padding: 6px 0;
    position: relative;
    transition: all 0.3s ease;
}

.footer-legal-menu li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    color: var(--ggsolutions-green);
    font-weight: bold;
    transition: all 0.3s ease;
}

.footer-legal-menu li a:hover {
    color: var(--ggsolutions-green);
    padding-left: 10px;
}

.footer-legal-menu li a:hover::before {
    opacity: 1;
}

/* Wyjątek dla ważnych linków prawnych */
.footer-legal-menu li a strong {
    font-weight: 700;
    color: #ffffff;
}

.footer-legal-menu li a:hover strong {
    color: var(--ggsolutions-green);
}

/* Certificates */
.certificates {
    margin-top: 25px;
}

.cert-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.cert-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* Footer Bottom */
.footer-bottom {
    background: var(--ggsolutions-primary-dark, #2b2b2b);
    padding: 30px 0;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--ggsolutions-green) 50%, transparent 100%);
}

.footer-bottom-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 400;
}

.legal-info {
    text-align: left;
}

.company-legal {
    margin: 0;
    line-height: 1.6;
}

.company-legal strong {
    color: #ffffff;
    font-size: 15px;
}

.copyright {
    text-align: right;
}

.copyright p {
    margin: 0 0 5px 0;
    line-height: 1.5;
}

.powered-by {
    opacity: 0.7;
    font-size: 12px;
}

.footer-bottom-content a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-content a:hover {
    color: var(--ggsolutions-green);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .site-footer {
        margin-top: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
        padding: 50px 0 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-brand h4::after {
        left: 0;
        transform: none;
    }

    .trust-badges {
        align-items: center;
    }

    .footer-bottom-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .legal-info,
    .copyright {
        text-align: center;
    }
}
.footer-mob-menu {
    display: contents;
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 40px 0 25px;
    }

    .footer-brand {
        text-align: center;
        grid-column: 1;
    }

    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 20px;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section h5 {
        text-align: center;
        font-size: 13px;
    }


    .contact-info {
        gap: 15px;
    }

        .footer-mob-menu {
        display: flex;
        gap: 30px;
        width: 100%;
    }
    
    .footer-service,
    .footer-legal {
        flex: 1; /* Każdy zajmuje 50% */
        margin: 0;
    }
/*
    .footer-mob-menu {
        display: flex;
        flex-direction: row;
        column-gap: 2em;
    }
    .footer-service,
    .footer-legal {
        width: 50%;
    }
*/
    .footer-service-menu,
    .footer-legal-menu {
        gap: 8px;
        text-align: left;
        width: 100%;
        justify-content: space-around;
    }

    .footer-service h4,
    .footer-legal h4 {
        text-align: left;
        margin-bottom: 15px;
    }

    .footer-service h4::after,
    .footer-legal h4::after {
        left: 0;
        transform: none;
    }

    .footer-service h5,
    .footer-legal h5 {
        text-align: left;
        font-size: 13px;
    }

    .footer-container {
        padding: 0 15px;
    }

    .trust-badges {
        align-items: center;
    }

    .shipping-icons,
    .cert-badges {
        align-items: center;
    }

    .payment-icons {
        justify-content: flex-start;
    }

    .footer-bottom {
        padding: 25px 0;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 30px 0 20px;
        gap: 25px;
    }

    .footer-brand .footer-logo img,
    .footer-brand .custom-logo {
        max-height: 45px !important;
    }

    .footer-site-title {
        font-size: 24px;
    }

    .contact-item {
        gap: 10px;
    }

    .contact-icon {
        width: 20px;
        height: 20px;
    }

    .contact-icon svg {
        width: 18px;
        height: 18px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-bottom-content {
        font-size: 12px;
    }

    .payment-icons {
        gap: 6px;
    }

    .payment-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .trust-item,
    .shipping-item,
    .cert-item {
        font-size: 12px;
        justify-content: center;
    }

    .shipping-icons,
    .cert-badges {
        align-items: center;
        text-align: center;
    }
}

/* Override any remaining Storefront footer styles */
.site-footer * {
    color: inherit;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
    color: inherit;
}

/* High contrast support */
@media (prefers-contrast: high) {
    .footer-section h4::after {
        height: 3px;
    }

    .contact-icon,
    .payment-icon,
    .cert-item {
        border: 1px solid var(--ggsolutions-green);
    }
}

/* Print styles */
@media print {
    .site-footer {
        background: white !important;
        color: black !important;
        border-top: 2px solid black;
    }

    .footer-section h4 {
        color: black !important;
    }

    .trust-badges,
    .payment-methods,
    .certificates,
    .footer-bottom {
        display: none;
    }
}