﻿/* Footer Styles - Optimized Logo Visibility */
.main-footer {
    background: #0d3b1e;
    color: #ffffff;
    font-family: 'Segoe UI', system-ui, sans-serif;
    position: relative;
    overflow: hidden;
}

    /* Logo Background Pattern */
    .main-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #4caf50, #8bc34a);
    }

/* Footer Top - Logo Section */
.footer-top {
    background: #1a4721;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.company-section {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.company-logo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.footer-logo {
    height: 80px;
    width: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.logo-background {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    z-index: 1;
}

.company-details {
    flex: 1;
    min-width: 250px;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.company-slogan {
    font-size: 0.95rem;
    color: #c8e6c9;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.company-description {
    font-size: 0.9rem;
    color: #a5d6a7;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

/* Footer Middle */
.footer-middle {
    padding: 40px 0;
    background: linear-gradient(135deg, #1a4721 0%, #2d6a4f 100%);
}

    .footer-middle .footer-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }

.footer-column {
    animation: fadeInUp 0.5s ease;
}

.column-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

    .column-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 3px;
        background: #ffcc00;
        border-radius: 2px;
    }

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-menu li {
        margin-bottom: 12px;
    }

    .footer-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #e8f5e9;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        padding: 5px 0;
    }

        .footer-menu a:hover {
            color: #ffcc00;
            transform: translateX(5px);
        }

    .footer-menu i {
        font-size: 0.8rem;
        width: 16px;
        color: #4caf50;
    }

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

    .contact-item i {
        color: #4caf50;
        font-size: 1.1rem;
        margin-top: 3px;
        flex-shrink: 0;
    }

.contact-text {
    margin: 0;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 500;
}

.contact-subtext {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: #c8e6c9;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
}

    .social-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.facebook {
    background: #3b5998;
}

.twitter {
    background: #1da1f2;
}

.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.youtube {
    background: #ff0000;
}

.whatsapp {
    background: #25d366;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    .footer-bottom .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }

.copyright-section p {
    margin: 0;
    font-size: 0.85rem;
    color: #c8e6c9;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

    .footer-links a {
        color: #c8e6c9;
        text-decoration: none;
        font-size: 0.85rem;
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: #ffcc00;
        }

.divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.credits {
    font-size: 0.85rem;
    color: #c8e6c9;
}

.credits-link {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .credits-link:hover {
        color: #ffffff;
        text-decoration: underline;
    }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background: linear-gradient(135deg, #388e3c, #1b5e20);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .back-to-top i {
        font-size: 1.1rem;
    }

/* Responsive Design */
@media (min-width: 768px) {
    .footer-bottom .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-middle .footer-container {
        gap: 40px;
    }

    .company-section {
        flex-wrap: nowrap;
    }
}

@media (max-width: 767px) {
    .footer-top {
        padding: 25px 0;
    }

    .footer-middle {
        padding: 30px 0;
    }

    .company-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-logo {
        height: 70px;
    }

    .footer-middle .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .column-title {
        cursor: pointer;
        user-select: none;
    }

        .column-title::after {
            content: '+';
            position: absolute;
            right: 0;
            left: auto;
            width: auto;
            background: none;
            font-size: 1.2rem;
        }

        .column-title.active::after {
            content: '-';
        }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
