/* Footer Styles - Professional and Elegant */

.main-footer {
    background: linear-gradient(180deg, #1a1f2e 0%, #0f1419 100%);
    color: var(--text-light);
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
    margin-top: clamp(6rem, 10vw, 8rem);
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 168, 218, 0.4), rgba(184, 148, 210, 0.4), transparent);
}

.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(139, 168, 218, 0.03));
    clip-path: polygon(0 50%, 25% 30%, 50% 50%, 75% 30%, 100% 50%, 100% 100%, 0 100%);
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
    border-bottom: 1px solid rgba(139, 168, 218, 0.15);
    align-items: start;
}

/* Footer Branding - Enhanced visual hierarchy */
.footer-branding {
    max-width: 100%;
    padding-right: 2rem;
    text-align: left;
}

.footer-logo {
    font-family: var(--font-accent);
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, #8ba8da 0%, #b894d2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: inline-block;
    position: relative;
}

.footer-logo::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #8ba8da, #b894d2);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.9375rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.footer-mission {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    font-style: italic;
    color: #8ba8da;
    padding-left: 1.25rem;
    border-left: 2px solid #8ba8da;
    line-height: 1.6;
    font-weight: 300;
}

/* Footer Links Section - Improved spacing */
.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section-title {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
    display: inline-block;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, #8ba8da, transparent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 300;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-link:hover {
    color: #8ba8da;
    transform: translateX(6px);
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: #8ba8da;
}

.footer-link:hover::before {
    opacity: 1;
    left: -1.75rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
    font-weight: 300;
    cursor: default;
}

/* Footer Bottom - Refined layout */
.footer-bottom {
    padding-top: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-policies {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.footer-policy-link {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.footer-policy-link:hover {
    color: #8ba8da;
}

.footer-copyright {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-accent);
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.footer-copyright strong {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--transition-medium);
}

.social-link:hover {
    background-color: var(--accent-light);
    transform: translateY(-3px);
}

/* Responsive Footer */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-branding {
        grid-column: 1 / -1;
        text-align: left;
        max-width: 100%;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 3rem 0 2rem;
        margin-top: 4rem;
    }
    
    .footer-container {
        padding: 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }
    
    .footer-branding {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-logo {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        display: inline-block;
    }    .footer-description {
        font-size: 0.9375rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }
    
    .footer-mission {
        font-size: 0.8125rem;
        padding-left: 1rem;
        margin: 0 auto;
        max-width: 90%;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section-title {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
        display: inline-block;
    }
    
    .footer-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        gap: 0.75rem;
        align-items: center;
    }
    
    .footer-link {
        font-size: 0.9375rem;
    }
    
    .footer-link::before {
        display: none;
    }
    
    .footer-link:hover {
        transform: translateX(0);
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        gap: 1rem;
    }
    
    .footer-policies {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem 1rem;
        justify-items: center;
        margin-bottom: 0.75rem;
    }
    
    .footer-policy-link {
        font-size: 0.6875rem;
        letter-spacing: 0.05em;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
        line-height: 1.5;
        padding: 0 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-description {
        font-size: 0.875rem;
    }
    
    .footer-mission {
        font-size: 0.75rem;
        padding-left: 0.75rem;
    }
    
    .footer-section-title {
        font-size: 0.75rem;
        display: inline-block;
    }
    
    .footer-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        gap: 0.625rem;
    }
    
    .footer-link {
        font-size: 0.875rem;
    }
    
    .footer-policies {
        gap: 0.375rem 0.75rem;
    }
    
    .footer-policy-link {
        font-size: 0.625rem;
    }
    
    .footer-copyright {
        font-size: 0.6875rem;
    }
}
