/**
 * Footer Links Block Styles
 * 
 * @package ACF Child Theme
 */

/* ==========================================================================
   Root Variables
   ========================================================================== */
:root {
    --green-primary: #006a3c;
    --orange-accent: #f7b119;
    --light-gray: #f5f6f6;
    --dark-text: #252525;
    --light-green: #b0cfc1;
    --white: #ffffff;
}

/* ==========================================================================
   Footer Links Section
   ========================================================================== */
.footer-links-section {
    width: 100%;
    padding: 40px 0;
}

.footer-links-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -95px;
    padding: 0 20px;
}

/* ==========================================================================
   Grid Layout
   ========================================================================== */
.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
}

/* Desktop: Two columns */
@media (min-width: 768px) {
    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   Column Styles
   ========================================================================== */
.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ==========================================================================
   Link Item Styles
   ========================================================================== */
.footer-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

/* Icon Styles */
.footer-link-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-link-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-link-icon svg path {
    fill: var(--green-primary, #006a3c);
    transition: fill 0.3s ease;
}

/* Hover effect on icon when hovering link */
.footer-link-item:hover .footer-link-icon svg path {
    fill: var(--green-primary, #006a3c);
    opacity: 0.8;
}

/* Link Text Styles */
.footer-link-text {
    flex: 1;
}

.footer-link-text a {
    color: var(--dark-text);
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-link-text a:hover,
.footer-link-text a:focus {
    color: var(--green-primary);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

/* Mobile */
@media (max-width: 767px) {
    .footer-links-section {
        padding: 30px 0;
    }
    
    .footer-links-container {
        margin-top: -65px;
        padding: 0 16px;
    }
    
    .footer-links-grid {
        gap: 24px;
    }
    
    .footer-links-column {
        gap: 14px;
    }
    
    .footer-link-text a {
        font-size: 15px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .footer-links-container {
        padding: 0 24px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .footer-links-section {
        padding: 50px 0;
    }
    
    .footer-links-grid {
        gap: 50px;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Focus Styles */
.footer-link-text a:focus {
    outline: 2px solid var(--green-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Keyboard Navigation */
.footer-link-text a:focus-visible {
    outline: 2px solid var(--green-primary);
    outline-offset: 2px;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .footer-link-item,
    .footer-link-text a {
        transition: none;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .footer-links-section {
        break-inside: avoid;
    }
    
    .footer-link-text a {
        color: var(--dark-text);
        text-decoration: underline;
    }
    
    .footer-link-text a::after {
        content: " (" attr(href) ")";
        font-size: 12px;
    }
}

