/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.footer {
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 3.5rem 0 2rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(29, 192, 214, 0.5), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   LOGO SECTION
   ========================================================================== */

.footer-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

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

.footer-logo-link:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 50px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

/* ==========================================================================
   BRAND SECTION (Removed)
   ========================================================================== */

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */

.footer-section {
    display: flex;
    flex-direction: column;
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-accent), transparent);
    opacity: 0.5;
}

.footer-brand::before {
    display: none;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-accent), var(--primary-dark));
    border-radius: 1px;
}

.footer-subsection {
    margin-top: 2rem;
}

.footer-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 1px;
    background: var(--primary-accent);
    border-radius: 1px;
}

/* ==========================================================================
   NAVIGATION LINKS
   ========================================================================== */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--primary-accent);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-accent);
    text-decoration: none;
    padding-left: 15px;
}

.footer-link:hover::before {
    width: 10px;
}

.footer-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-quick-link {
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-quick-link::before {
    content: '→';
    position: absolute;
    left: -15px;
    top: 0;
    opacity: 0;
    color: var(--primary-accent);
    transition: all 0.3s ease;
    transform: translateX(-5px);
}

.footer-quick-link:hover {
    color: var(--primary-accent);
    text-decoration: none;
    padding-left: 15px;
}

.footer-quick-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.contact-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-accent);
    flex-shrink: 0;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-accent);
    text-decoration: none;
}

.contact-text {
    color: inherit;
}

/* ==========================================================================
   RESOLUTIONS SECTION
   ========================================================================== */

.footer-resolutions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resolution-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.resolution-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-accent);
    flex-shrink: 0;
}

.resolution-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.resolution-link:hover {
    color: var(--primary-accent);
    text-decoration: none;
    padding-left: 8px;
}

.resolution-link::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 4px;
    height: 4px;
    background: var(--primary-accent);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.resolution-link:hover::before {
    transform: translateY(-50%) scale(1);
}

/* ==========================================================================
   FOOTER BOTTOM
   ========================================================================== */

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 2rem 0 1.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copyright {
    color: var(--medium-gray);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

.footer-legal {
    color: var(--medium-gray);
    font-size: 0.8rem;
    margin: 0;
}

.legal-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--primary-accent);
    text-decoration: none;
}

/* ==========================================================================
   SOCIAL MEDIA LINKS
   ========================================================================== */

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-label {
    color: var(--medium-gray);
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: var(--medium-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-accent), #0ea5e9);
    transition: left 0.3s ease;
    z-index: 0;
}

.social-link:hover::before {
    left: 0;
}

.social-link:hover {
    color: var(--white);
    border-color: var(--primary-accent);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(29, 192, 214, 0.4);
    text-decoration: none;
}

.social-link i {
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-container {
        padding: 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section:first-child {
        grid-column: auto;
        text-align: left;
    }
    
    .footer-logo-section {
        margin-top: 1.5rem;
        padding: 1rem 0 0;
    }
    
    .footer-logo {
        height: 45px;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-bottom-left {
        align-items: center;
    }
    
    .social-label {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .footer-social {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .footer-logo-section {
        padding: 0.75rem 0 0;
        margin-top: 1rem;
    }
    
    .footer-title {
        font-size: 0.95rem;
    }
    
    .social-link {
        width: 34px;
        height: 34px;
    }
    
    .social-link i {
        font-size: 0.85rem;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   ACCESSIBILITY & VISUAL IMPROVEMENTS
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .footer-link,
    .social-link,
    .footer-logo,
    .resolution-link,
    .footer-quick-link {
        transition: none;
    }
    
    .social-link::before {
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .footer {
        background: var(--white);
        border-top: 2px solid var(--primary-dark);
    }
    
    .footer-link,
    .contact-item,
    .footer-copyright,
    .resolution-item,
    .brand-text {
        color: var(--primary-dark);
    }
    
    .social-link {
        border: 2px solid var(--primary-dark);
        color: var(--primary-dark);
    }
    
    .social-link:hover {
        background: var(--primary-dark);
        color: var(--white);
    }
}

/* Focus States for Accessibility */
.footer-link:focus,
.contact-link:focus,
.social-link:focus,
.resolution-link:focus,
.legal-link:focus,
.footer-quick-link:focus {
    outline: 2px solid var(--primary-accent);
    outline-offset: 2px;
    border-radius: 2px;
}