/* ===================================
   ATAX FOOTER BLOCK STYLES
   =================================== */

/* Main footer section */
.atax-footer-section {
    background: var(--light-gray, #f4f4f4);
    padding: 60px 20px 0px 20px; /* Main container controls side spacing */
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif; /* Ensure all footer text uses Montserrat */
}

.atax-footer-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Main footer content */
.atax-footer-main {
    padding-bottom: 40px;
}

.atax-footer-columns {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Individual footer columns */
.atax-footer-column {
    flex: 1;
    min-width: 0; /* Allow flex shrinking */
}

.atax-footer-column.atax-footer-contact {
    flex: 1.5;
}

/* Column 1: Branding & Language (wider) */
.atax-footer-branding {
    flex: 1.5; /* Make branding column wider */
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ATAX Logo - Fixed width 132px */
.atax-footer-logo {
    max-width: 132px;
}

.atax-footer-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.atax-footer-logo-link:hover {
    opacity: 0.8;
}

.atax-footer-logo-img {
    width: 132px;
    height: auto;
    max-width: 132px;
}

/* Badge row container - align logos side by side */
.atax-footer-badges {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Badge containers - adapt to image size */
.atax-footer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.atax-footer-badge-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 86px;
    max-height: 86px;
}

.atax-footer-language-switcher {
    margin-top: 8px;
}

/* Language switcher styles */
.atax-footer-language-switcher ul {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.atax-footer-language-switcher li {
    margin: 0;
}

.atax-footer-language-switcher a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--primary-color, #354477);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: var(--primary-color, #354477);
    font-family: 'Montserrat', sans-serif;
}

.atax-footer-language-switcher a:hover {
    background: var(--primary-color, #354477);
    color: white;
}

.atax-footer-language-switcher .current-lang a {
    background: var(--primary-color, #354477);
    color: white;
}

/* Language fallback */
.atax-language-fallback {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--primary-color, #354477);
    border-radius: 6px;
    background: var(--primary-color, #354477);
    color: white;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

/* Columns 2-5: Navigation and Contact */
.atax-footer-services,
.atax-footer-company,
.atax-footer-location,
.atax-footer-contact {
    flex: 1;
}

/* Footer headings */
.atax-footer-heading {
    color: var(--primary-color, #354477);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
}

/* Footer links */
.atax-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.atax-footer-links li {
    margin: 0 0 12px 0;
}

.atax-footer-link {
    color: var(--primary-color, #354477);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.atax-footer-link:hover {
    color: var(--accent-color, #10A1DC);
}

/* Fourth column specific styling - Montserrat 16px 700 */
.atax-footer-location .atax-footer-link {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

/* Contact information */
.atax-footer-location-name {
    color: var(--accent-color, #10A1DC);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    font-family: 'Montserrat', sans-serif;
}

.atax-footer-address {
    color: var(--primary-color, #354477);
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
}

.atax-footer-phone {
    margin: 0 0 12px 0;
}

.atax-footer-phone-link {
    color: var(--accent-color, #10A1DC);
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

.atax-footer-phone-link:hover {
    color: var(--primary-color, #354477);
}

.atax-footer-email {
    margin: 0 0 20px 0;
}

.atax-footer-email-link {
    color: var(--accent-color, #10A1DC);
    text-decoration: underline;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.atax-footer-email-link:hover {
    color: var(--primary-color, #354477);
}

/* Social media icons */
.atax-footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.atax-footer-social-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.atax-footer-social-link:hover {
    transform: translateY(-2px);
}

/* Social Icons - Fixed size 20x20px for all icons */
.atax-footer-social-icon {
    width: 20px;
    height: 20px;
    fill: var(--accent-color, #10A1DC);
}

/* Footer bottom bar */
.atax-footer-bottom {
    border-top: 1px solid #d3d3d3;
    padding: 20px 0;
}

.atax-footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.atax-footer-copyright {
    color: var(--primary-color, #354477);
    font-size: 14px;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
}

.atax-footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.atax-footer-legal-link {
    color: var(--primary-color, #354477);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.atax-footer-legal-link:hover {
    color: var(--accent-color, #10A1DC);
}

.atax-footer-legal-separator {
    color: var(--primary-color, #354477);
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.atax-footer-design {
    display: flex;
    align-items: center;
    gap: 8px;
}

.atax-footer-design-icon {
    width: 16px;
    height: 16px;
}

.atax-footer-design-text {
    color: var(--primary-color, #354477);
    font-size: 14px;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
}

.atax-footer-design-link {
    color: var(--primary-color, #354477);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.atax-footer-design-link:hover {
    color: var(--accent-color, #10A1DC);
    text-decoration: underline;
}

/* ===================================
   RESPONSIVE BREAKPOINTS - GOLDEN STANDARD
   =================================== */

/* Laptop (1151px-1600px): Same layout, reduced gaps only */
@media (max-width: 1600px) {
    .atax-footer-section {
        padding: 60px 20px 0px 20px; /* Maintain desktop side padding */
    }
    
    .atax-footer-columns {
        gap: 50px; /* Reduced gap */
    }
}

/* Tablet (768px-1150px): Columns stack */
@media (max-width: 1150px) {
    .atax-footer-section {
        padding: 50px 20px 0px 20px; /* Maintain desktop side padding */
    }
    
    .atax-footer-columns {
        flex-direction: column;
        gap: 40px;
    }
    
    .atax-footer-branding {
        flex: 1; /* Reset flex for stacked layout */
    }
    
    .atax-footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Mobile (0px-767px): Stacked layout, reduced padding */
@media (max-width: 767px) {
    .atax-footer-section {
        padding: 40px 16px 0px 16px; /* Mobile side padding */
    }
    
    .atax-footer-columns {
        gap: 32px;
    }
    
    .atax-footer-logo {
        max-width: 120px;
    }
    
    .atax-footer-logo-link {
        display: inline-block;
    }
    
    .atax-footer-logo-img {
        width: 120px;
        max-width: 120px;
    }
    
    .atax-footer-badge-img {
        max-width: 72px;
        max-height: 72px;
    }
    
    .atax-footer-heading {
        font-size: 15px; /* Slightly smaller on mobile */
    }
    
    .atax-footer-link,
    .atax-footer-address,
    .atax-footer-phone-link,
    .atax-footer-email-link,
    .atax-footer-copyright,
    .atax-footer-legal-link,
    .atax-footer-design-text {
        font-size: 13px; /* Smaller text on mobile */
    }
    
    .atax-footer-social {
        gap: 10px;
    }
    
    .atax-footer-social-icon {
        width: 20px;
        height: 20px;
    }
    
    .atax-footer-bottom {
        padding: 16px 0;
    }
    
    .atax-footer-bottom-content {
        gap: 12px;
    }
}

/* ===================================
   ACCESSIBILITY & INTERACTION
   =================================== */

/* Focus states for accessibility */
.atax-footer-link:focus,
.atax-footer-phone-link:focus,
.atax-footer-email-link:focus,
.atax-footer-legal-link:focus,
.atax-footer-social-link:focus {
    outline: 2px solid var(--accent-color, #10A1DC);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .atax-footer-section {
        background: white;
        border-top: 2px solid var(--primary-color, #354477);
    }
    
    .atax-footer-link,
    .atax-footer-legal-link {
        text-decoration: underline;
    }
}
