/* ===== FOOTER SECTION ===== */
.footer-section {
    background: #f8fffe;
    padding: 40px 0 0;
    color: var(--text-dark);
    position: relative;
    border-top: 2px solid var(--primary-green);
    width: 100%;
    overflow-x: hidden;
}

.footer-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

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

.footer-widget {
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Center logo section on mobile */
.footer-widget:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    border-radius: var(--radius-sm);
    max-width: 100%;
    display: block;
}

.footer-description {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    width: 38px;
    height: 38px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
    flex-shrink: 0;
}

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

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

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-green);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
    display: inline-block;
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-gray);
    font-size: 0.85rem;
    word-break: break-word;
}

.contact-item i {
    color: var(--primary-green);
    width: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding: 1.25rem 0;
    margin-top: 2rem;
    background: #f1f8f4;
    width: 100%;
}

.footer-bottom .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

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

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Small tablets and large phones */
@media (min-width: 576px) {
    .footer-section {
        padding: 50px 0 0;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer-logo-img {
        height: 48px;
    }

    .footer-description,
    .footer-links a,
    .contact-item {
        font-size: 0.9rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    .footer-widget {
        text-align: left !important;
        align-items: start !important;
    }
    .contact-item {
        justify-content: start !important;
        margin: 0 !important;
    }
    .contact-link {
        text-align: left !important;
    }
}

/* Tablets - Left align logo */
@media (min-width: 768px) {
    .footer-section {
        padding: 60px 0 0;
    }

    .footer-section .container {
        padding: 0 30px;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .footer-widget {
        margin-bottom: 2rem;
    }

    /* Left align logo section on tablet and up */
    .footer-widget:first-child {
        align-items: flex-start;
        text-align: left;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-bottom .container {
        padding: 0 30px;
        text-align: left;
    }
}

/* Large tablets and small desktops */
@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 3rem;
    }

    .footer-logo-img {
        height: 50px;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .footer-description,
    .footer-links a,
    .contact-item {
        font-size: 0.95rem;
    }

    .footer-copyright {
        font-size: 0.9rem;
    }
}

/* Large desktops */
@media (min-width: 1200px) {
    .footer-section .container,
    .footer-bottom .container {
        padding: 0 40px;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .footer-content {
        gap: 4rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .footer-section {
        padding: 30px 0 0;
    }

    .footer-widget {
        margin-bottom: 1rem;
    }

    .footer-bottom {
        margin-top: 1rem;
        padding: 1rem 0;
    }
}
