/*
Theme Name: Martfury Child
Theme URI: http://drfuri.com/unero
Author: DrFuri
Author URI: http://drfuri.com
Description: Martfury Child Theme.
Version: 1.0
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: martfury
Domain Path: /lang/
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
Template: martfury
*/

/* Footer Custom Styles - AdrExpress */
.site-footer .footer-links .footer-company-section {
    margin-bottom: 0;
}

.site-footer .footer-links .footer-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.site-footer .footer-links .footer-links-row a {
    color: #666;
    text-decoration: none;
    position: relative;
    padding: 0 10px;
    transition: color 0.35s;
}

.site-footer .footer-links .footer-links-row a:hover {
    color: #000;
}

.site-footer .footer-links .footer-links-row a:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    height: 12px;
    width: 1px;
    background-color: #666;
}

.site-footer .footer-links .footer-company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
}

.site-footer .footer-links .footer-company-text {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.site-footer .footer-links .footer-company-text h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

.site-footer .footer-links .footer-company-text p {
    margin-bottom: 15px;
}

.site-footer .footer-links .footer-company-image {
    text-align: center;
}

.site-footer .footer-links .footer-company-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .site-footer .footer-links .footer-company-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .site-footer .footer-links .footer-links-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .site-footer .footer-links .footer-links-row a:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 767px) {
    /* Ensure footer doesn't overlap with fixed elements */
    .site-footer {
        position: relative;
        z-index: 1;
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Mobile padding for footer-links section */
    .site-footer .footer-links {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    /* Ensure footer-content doesn't overflow */
    .site-footer .footer-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Optimize footer-company-section for mobile */
    .site-footer .footer-links .footer-company-section {
        width: 100%;
        margin-bottom: 20px;
        padding: 0;
    }
    
    /* Optimize footer-company-grid for mobile */
    .site-footer .footer-links .footer-company-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
        width: 100%;
    }
    
    /* Optimize footer-company-text for mobile */
    .site-footer .footer-links .footer-company-text {
        font-size: 13px;
        line-height: 1.6;
        width: 100%;
    }
    
    .site-footer .footer-links .footer-company-text h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .site-footer .footer-links .footer-company-text p {
        margin-bottom: 12px;
    }
    
    /* Optimize footer-company-image for mobile */
    .site-footer .footer-links .footer-company-image {
        width: 100%;
        margin: 0 auto;
    }
    
    /* Optimize footer-links-row for mobile */
    .site-footer .footer-links .footer-links-row {
        flex-direction: column;
        gap: 12px;
        padding: 15px 0;
        width: 100%;
        align-items: flex-start;
    }
    
    .site-footer .footer-links .footer-links-row a {
        padding: 8px 0;
        width: 100%;
        text-align: left;
        display: block;
    }
    
    /* Footer bottom mobile styles */
    .site-footer .footer-bottom {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 30px;
        padding-top: 30px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .site-footer .footer-bottom .footer-row {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .site-footer .footer-bottom .col-footer-copyright,
    .site-footer .footer-bottom .col-footer-return {
        width: 100%;
        text-align: left !important;
        margin-top: 15px;
    }
    
    .site-footer .footer-bottom .col-footer-copyright {
        margin-top: 0;
    }
    
    .site-footer .footer-bottom .footer-copyright {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* Mobile version specific styles (when .mobile-version class is present) */
.mobile-version .site-footer .footer-links {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.mobile-version .site-footer .footer-links .footer-company-section {
    margin-bottom: 20px;
}

.mobile-version .site-footer .footer-links .footer-company-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.mobile-version .site-footer .footer-links .footer-links-row {
    flex-direction: column;
    gap: 12px;
    padding: 15px 0;
    align-items: flex-start;
}

.mobile-version .site-footer .footer-links .footer-links-row a {
    padding: 8px 0;
    width: 100%;
    text-align: left;
}

.mobile-version .site-footer .footer-bottom {
    padding-left: 15px;
    padding-right: 15px;
}

.mobile-version .site-footer .footer-bottom .footer-row {
    flex-direction: column;
}

.mobile-version .site-footer .footer-bottom .col-footer-return {
    text-align: left !important;
    margin-top: 15px;
}

/* Ensure footer doesn't overlap with fixed bottom elements */
@media (max-width: 767px) {
    body {
        padding-bottom: 0;
    }
    
    /* Prevent footer from being hidden behind fixed elements */
    .site-footer {
        margin-top: 0;
        clear: both;
    }
    
    /* Ensure proper spacing */
    #page {
        padding-bottom: 0;
    }
    
    /* Ensure container doesn't cause horizontal overflow */
    .site-footer .footer-layout > .martfury-container,
    .site-footer .footer-layout > .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure footer-content doesn't overflow */
    .site-footer .footer-layout .footer-content {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Prevent text overflow in footer */
    .site-footer .footer-links .footer-company-text,
    .site-footer .footer-links .footer-links-row a,
    .site-footer .footer-bottom .footer-copyright {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Ensure images don't overflow */
    .site-footer .footer-links .footer-company-image img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 479px) {
    .site-footer .footer-links {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .site-footer .footer-bottom {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .site-footer .footer-links .footer-company-text {
        font-size: 12px;
    }
    
    .site-footer .footer-links .footer-company-text h2 {
        font-size: 18px;
    }
    
    .site-footer .footer-bottom .footer-copyright {
        font-size: 12px;
    }
}