@import 'index.css';

.footer {
    background-color: var(--accent-color-primary);
    padding: 6rem 0 0 0;
    font-family: var(--text-secondary);
    color: var(--text-color-light);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 6rem 2rem 6rem;
    border-bottom: 1px solid var(--text-color-light);
}

.footer-section {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(23.3% - 1rem);
    max-width: calc(23.3% - 1rem);
}

.footer-section.logo-section {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(30% - 1rem);
    max-width: calc(30% - 1rem);
}

.footer-section.logo-section p {
    font-size: .9rem;
    line-height: 1.2rem;
}

.logo-section img {
    width: 100%;
    max-width: 200px;
    margin-bottom: 2rem;
}

.link-container {
    display: flex;
    flex-direction: column;
}

.footer-section h1 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-family: var(--text-primary);
    font-weight: 600;
}

.footer-section p, .footer-section .link {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 300;
    font-family: var(--text-secondary);
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-section .link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color-secondary);
    transition: width 0.3s ease;
}

.footer-section .link:hover {
    color: var(--accent-color-secondary);
}

.footer-section a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: .2rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(67, 10, 70, 0.8);
}

.social-icons img {
    width: 25px;
    height: 25px;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
}

.footer-bottom p {
    font-size: 1rem;
    font-weight: 300;
}

@media (max-width: 1024px) {
    .footer-section {
        flex: 1 1 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }
}

@media (max-width: 767.98px) {
    .footer-top {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    .footer-section {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
        margin-bottom: 1rem;
    }

    .footer-section.logo-section {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .logo-section img {
        margin: 0 auto 10px;
    }

    .logo-section p {
        text-align: center;
    }
    
    .link-container {
        display: flex;
        justify-content: space-between;
    }

    .footer-section.contact-section {
        text-align: center;
    }
}