.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 10%, var(--primary) 90%, transparent 100%);
}

.footer-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.footer-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(15, 26, 10, 0.98) 0%, rgba(161, 170, 139, 0.15) 50%, rgba(106, 124, 84, 0.1) 100%);
}

.footer-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(161, 170, 139, 0.05) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(161, 170, 139, 0.03) 0%, transparent 50%), radial-gradient(circle at 50% 80%, rgba(161, 170, 139, 0.02) 0%, transparent 50%);
    background-size: 100% 100%;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.footer-about {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-link:hover {
    background: var(--primary-gradient);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-shadow);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 0.5rem 0;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links li a::before {
    content: '›';
    font-size: 1.2rem;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-contact li i {
    width: 20px;
    color: var(--primary);
    font-size: 1rem;
}

.footer-contact li:hover {
    color: var(--white);
}

.footer-newsletter-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

.footer-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.footer-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.footer-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.footer-form input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px var(--primary-shadow);
}

.btn-footer-subscribe {
    padding: 0.7rem 1.2rem;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    flex-shrink: 0;
}

.btn-footer-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-shadow);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0.5rem 0 0;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    padding: 1.5rem 0;
    margin-top: 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer-crp-bottom {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-crp-bottom i {
    color: var(--primary);
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-about {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .footer-col {
        align-items: center;
        text-align: center;
    }

    .footer-about {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links li a::before {
        display: none;
    }

    .footer-links li a:hover {
        transform: none;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-form {
        width: 100%;
        max-width: 400px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 0;
    }

    .footer-logo-img {
        height: 45px;
    }

    .footer-form {
        flex-direction: column;
        max-width: 100%;
    }

    .btn-footer-subscribe {
        width: 100%;
        justify-content: center;
    }

    .footer-contact li {
        font-size: 0.85rem;
    }

    .footer-copy,
    .footer-crp-bottom {
        font-size: 0.75rem;
    }
}